[FIXED] 403 With acme-tiny client

If you get in trouble with acme-tiny client, I have 2 fixes for you:

  1. The obvious one is to keep it up-to-date, that fixed it here (Duh!).
  2. Plus you may require a small hack for acme-tiny.py:
diff --git a/acme_tiny.py b/acme_tiny.py
index ba04e37..4f30c3a 100755
--- a/acme_tiny.py
+++ b/acme_tiny.py
@@ -132,7 +132,7 @@ def get_crt(account_key, csr, acme_dir, log=LOGGER, CA=DEFAULT_CA, disable_check
         token = re.sub(r"[^A-Za-z0-9_\-]", "_", challenge['token'])
         keyauthorization = "{0}.{1}".format(token, thumbprint)
         wellknown_path = os.path.join(acme_dir, token)
-        with open(wellknown_path, "w") as wellknown_file:
+        with os.fdopen(os.open(wellknown_path, os.O_WRONLY | os.O_CREAT, 0644), 'w') as wellknown_file:
             wellknown_file.write(keyauthorization)
 
         # check that the file is in place

As you can see, you need to change line 135 (commit 5350420d35177eda733d85096433a24e55f8d00e) a bit.

I hope this helps someone. :slight_smile:

While I’m sure some users appreciate your suggestion here, it would likely help more users to submit an issue directly to the project and/or even a pull request with the fix. (assuming you haven’t already done that)

1 Like

Yes, sure. I have found here an unanswered post and thought it might be helpful to post it here. :slight_smile:

Edit: Just filed a PR.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.