Permalink
Browse files

Enable HTTPS for ACME challenge

  • Loading branch information...
aeris committed Dec 12, 2015
1 parent 81e357f commit 5eb7037fdd3073389840ed3d50bc0faf08a3063f
Showing with 2 additions and 1 deletion.
  1. +2 −1 acme_tiny.py
View
@@ -112,7 +112,7 @@ def _send_signed_request(url, payload):
wellknown_file.write(keyauthorization)
# check that the file is in place
wellknown_url = "http://{0}/.well-known/acme-challenge/{1}".format(domain, token)
wellknown_url = "https://{0}/.well-known/acme-challenge/{1}".format(domain, token)
try:
resp = urlopen(wellknown_url)
resp_data = resp.read().decode('utf8').strip()
@@ -125,6 +125,7 @@ def _send_signed_request(url, payload):
# notify challenge are met
code, result = _send_signed_request(challenge['uri'], {
"resource": "challenge",
"tls": True,
"keyAuthorization": keyauthorization,
})
if code != 202:

0 comments on commit 5eb7037

Please sign in to comment.