Closed ThiefMaster closed 8 years ago
diff --git a/acme_tiny.py b/acme_tiny.py
index f54db0c..4f83143 100644
--- a/acme_tiny.py
+++ b/acme_tiny.py
@@ -92,6 +92,8 @@ def get_crt(account_key, csr, acme_dir, log=LOGGER, CA=DEFAULT_CA):
raise ValueError("Error registering: {0} {1}".format(code, result))
# verify each domain
+ domain_data = {}
+
for domain in domains:
log.info("Verifying {0}...".format(domain))
@@ -110,7 +112,11 @@ def get_crt(account_key, csr, acme_dir, log=LOGGER, CA=DEFAULT_CA):
wellknown_path = os.path.join(acme_dir, token)
with open(wellknown_path, "w") as wellknown_file:
wellknown_file.write(keyauthorization)
+ domain_data[domain] = token, challenge, keyauthorization, wellknown_path
+
+ raw_input('Upload files and press return...')
+ for domain, (token, challenge, keyauthorization, wellknown_path) in domain_data.iteritems():
# check that the file is in place
wellknown_url = "http://{0}/.well-known/acme-challenge/{1}".format(domain, token)
try:
Quick'n'dirty change that did it for me (but it leaks temporary files in case of an error, i didn't care :p)
Sorry, this script is not meant to have manual interactivity. Please use another client or sshfs
if you want to do this.
I'd like to run this script locally and then upload the files to the proper server (that way I never need to put my account key on the actual servers where).