mirror of
https://github.com/certbot/certbot.git
synced 2026-01-24 19:22:07 +03:00
Merge branch 'master' of https://github.com/letsencrypt/lets-encrypt-preview
This commit is contained in:
@@ -40,13 +40,13 @@ NONCE_SIZE = 16
|
||||
RSA_KEY_SIZE = 2048
|
||||
|
||||
# bits of hashcash to generate
|
||||
difficulty = 23
|
||||
difficulty = 23
|
||||
|
||||
# Let's Encrypt cert and chain files
|
||||
CERT_PATH = CERT_DIR + "cert-letsencrypt.pem"
|
||||
CHAIN_PATH = CERT_DIR + "chain-letsencrypt.pem"
|
||||
|
||||
#Invalid Extension
|
||||
#Invalid Extension
|
||||
INVALID_EXT = ".acme.invalid"
|
||||
|
||||
# Challenge Preferences Dict for currently supported challenges
|
||||
|
||||
@@ -19,9 +19,9 @@ def acme_object_validate(j):
|
||||
j = json.loads(j)
|
||||
if not isinstance(j, dict):
|
||||
raise jsonschema.ValidationError("this is not a dictionary object")
|
||||
if not j.has_key("type"):
|
||||
if "type" not in j:
|
||||
raise jsonschema.ValidationError("missing type field")
|
||||
if not schemata.has_key(j["type"]):
|
||||
if j["type"] not in schemata:
|
||||
raise jsonschema.ValidationError("unknown type %s" % j["type"])
|
||||
jsonschema.validate(j, schemata[j["type"]])
|
||||
|
||||
|
||||
@@ -10,4 +10,3 @@ class Challenge(object):
|
||||
logger.error("Error - base class challenge.generate_response()")
|
||||
def clean(self):
|
||||
logger.error("Error - base class challenge.clean()")
|
||||
|
||||
|
||||
@@ -688,7 +688,7 @@ class Client(object):
|
||||
def sanity_check_names(self, names):
|
||||
for name in names:
|
||||
if not self.is_hostname_sane(name):
|
||||
logger.fatal(`name` + " is an impossible hostname")
|
||||
logger.fatal(repr(name) + " is an impossible hostname")
|
||||
sys.exit(81)
|
||||
|
||||
def is_hostname_sane(self, hostname):
|
||||
|
||||
@@ -907,12 +907,12 @@ LogLevel warn \n\
|
||||
Enables mod_ssl
|
||||
"""
|
||||
try:
|
||||
# Use check_output so the command will finish before reloading
|
||||
# Use check_output so the command will finish before reloading
|
||||
subprocess.check_call(["sudo", "a2enmod", mod_name], stdout=open("/dev/null", 'w'), stderr=open("/dev/null", 'w'))
|
||||
# Hopefully this waits for output
|
||||
subprocess.check_call(["sudo", "/etc/init.d/apache2", "restart"], stdout=open("/dev/null", 'w'), stderr=open("/dev/null", 'w'))
|
||||
except:
|
||||
logger.error("Error enabling mod_" + mod_name)
|
||||
logger.error("Error enabling mod_" + mod_name)
|
||||
sys.exit(1)
|
||||
|
||||
def fnmatch_to_re(self, cleanFNmatch):
|
||||
|
||||
@@ -168,8 +168,3 @@ if __name__ == "__main__":
|
||||
logger.error("errrrr")
|
||||
|
||||
logger.trace("some trace data: %d - %f - %s" % (5, 8.3, 'cows'))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -43,4 +43,3 @@ class Payment_Challenge(Challenge):
|
||||
|
||||
def formatted_reasons(self):
|
||||
return "\n\t* %s\n" % self.reason
|
||||
|
||||
|
||||
Reference in New Issue
Block a user