-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
403 error: Authorizations for these names not found or expired #41
Comments
No, it should list all files in that directory. Could you please check the permission of "/home/domain/public_html/sub/.well-known/" directory and all inner directories? |
Hi, thank you for your help, EDIT: |
I have also the 403 error when creating the new certs. It seems to happen only with newly created subdomains, I can generate a cert for an old domain without any errors |
I have the same issue. Running domain + subdomain on CentOS7.x, cpanel56. Certificates on Domains/subdomains created many years ago on the same server seemed to work fine. Let me know what I can do to assist with troubleshooting, |
@divemasterza @ian81 make sure you subdomains are correctly pointing to the server. For newly created subdomains, please allow few mins to propagate the DNS everywhere otherwise let'sencrypt may failed to reach the server and return 403 error while validating domain ownership. |
Nope, definitely not that :( domain is resolving perfectly from the outside world. Defintely not a DNS propagation issue! |
re-opening it. @divemasterza Could you share the domain names with me? |
Sure you can try http://surveys.progressive-personnel.com Domain was setup a couple days ago and I get the 403 error when requesting a cert. It seems the issues started with 11.56.08 (can't confirm this though) |
Possible due to redirecting all http traffic to https causing self-signing loop when trying to get cert for subdomain . Had the same issue: removed .htaccess redirect, added subdomain cert, added .htaccess redirect back in. Solved it for me |
Subdomain has been active and working for approx. 1 month. No http to https redirection in the .htaccess, also removed any certs on the parent domain. Parent domain encounters the same error when trying to obtain SSL. Running latest cPanel (11.56.14). The subdomain was created with cPanel 11.54. The '.well-known/acme-challenge' files are getting created. Is there a log file that captures where/how this is breaking? |
@divemasterza In your case the subdomain alias www.surveys.progressive-personnel.com is not resolving properly. Will add an option to select alt-domains, so that these kind of issues will be fixed. |
I am still having the same issue on a domain and subdomain. Its running drupal. I temporarily renamed the .htaccess file and updated to the latest script build (~9days ago). Same issue. Domain resolution works externally from multiple testing sources. Can view the /well-known/ challenges when the .htaccess file is renamed. |
I am also having this problem. |
@jackedgson solution worked for me after months of reinstalling the plugin, I was adamant that I'd broken something when cloning and using the official Let's Encrypt git repo. Renaming the .htaccess file (removing the redirect to https) instantly allowed the cPanel plugin to complete and install the Cert. I added the following line to Note: I also removed the following line as a precaution and have yet to confirm if it affects Let's Encrypt's process: |
@WilliamIsted Ah, nice little line of code, I didn't even think of doing something like that (I've just been commenting out the redirect and adding it back it). Anyway, I'm glad I could help out with the issue. |
Thanks @WilliamIsted ! the " RewriteRule ^.well-known(.*)$ - [L,NC] " bit worked awesome for me. I did not have the "Header always set Strict-Transport-Security" in my .htaccess file. |
@WilliamIsted if you don't mind, Could you please update this in the Readme file and create a PR? |
Hi,
From the first time i tried to create an SSL certificate, i continue to get this error
Error occurred: Status: 403, Detail: Error creating new cert :: Authorizations for these names not found or expired: sub.domain.com, www.sub.domain.com, Type: urn:acme:error:unauthorized
I managed to install a cert on a domain (let's say www.domain.com), but when i try to install the certificate on a different domain on the same machine, or a subdomain, i get the aforementioned error. I've already seen this issue and this one too, but none of these worked. I never installed any self-signed certificate, I've disabled the https redirecting within the .htaccess and added the www.sub.domain.com dns entry, but it still give me the same error again and again. I looked a bit within the code, but didn't found any useful information. I can say, however, that the challanges were successfully created within the
/home/domain/public_html/sub/.well-known/acme-challange/
folder. The first certificate that I installed gave the same error multiple time, than it gave me a "malformed json" error and the following time it worked. I can't really say why.EDIT:
If I try to open sub.domain.com/.well-known from the browser, it gives me a 403 error (Forbidden). Is this the expected behaviour? Maybe it's because of this...
I'm sorry to bother this much, thank you for your help!
The text was updated successfully, but these errors were encountered: