mirror of
https://github.com/certbot/certbot.git
synced 2026-07-26 07:39:52 +02:00
formalize disabling Observatory check for now
This commit is contained in:
@@ -271,11 +271,13 @@ class session(object):
|
||||
return
|
||||
try:
|
||||
# Check whether the SSL Observatory has seen a valid cert for this name.
|
||||
if urllib2.urlopen("https://observatory.eff.org/check_name?domain_name=%s" % san).read().strip() != "False":
|
||||
# XXX: This has been disabled because this API is unavailable
|
||||
# or unreliable.
|
||||
if False and urllib2.urlopen("https://observatory.eff.org/check_name?domain_name=%s" % san).read().strip() != "False":
|
||||
self.die(r, r.CannotIssueThatName, uri="https://ca.example.com/failures/observatory?%s" % san)
|
||||
return
|
||||
wildcard_variant = "*." + san.partition(".")[2]
|
||||
if urllib2.urlopen("https://observatory.eff.org/check_name?domain_name=%s" % wildcard_variant).read().strip() != "False":
|
||||
if False and urllib2.urlopen("https://observatory.eff.org/check_name?domain_name=%s" % wildcard_variant).read().strip() != "False":
|
||||
self.die(r, r.CannotIssueThatName, uri="https://ca.example.com/failures/observatory?%s" % san)
|
||||
return
|
||||
except urllib2.HTTPError:
|
||||
|
||||
Reference in New Issue
Block a user