Problem accessing a web page / redirection to page 404 / certificate error.
Personally, I find it hard to pinpoint my problem. And I still don't know who is the real culprit of this problem.
- Either it's magento 2.4
- Or it's Cpanel
- Or it's getssl/certbot.
Anyway I explain you my problem for two weeks now:
I have a website with magento 2.4.2 . I get and install my certificates with getssl (on letsencrypt). I have been using getssl for two years now to get/renew my site's certificate without any problem. Of course I use "Cpanel -> SSL/TLS -> CERTIFICATES (CRT)" to load the obtained certificate files into my site.
My certificate expired two weeks ago, but when I tried to renew it with getssl, I got this error message:
I obviously started by Googling this error message. And none of the proposed solutions solved my problem (make the acme-challenge folder read/write, give the rights, etc...). I decided to try to get the certificate with Certbot, another software. But even it displays an error more or less similar to the one from getssl:
getssl: for some reason could not reach http://mydomaine.com/.well-known/acme-challenge/UeI1tA5P327xxxxxxxxxxxx - please check it manuallyI obviously started by Googling this error message. And none of the proposed solutions solved my problem (make the acme-challenge folder read/write, give the rights, etc...). I decided to try to get the certificate with Certbot, another software. But even it displays an error more or less similar to the one from getssl:
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: myDomainne.com
Type: unauthorized
Detail: Invalid response from https:// myDomainne.com/.well-known/acme-challenge/ol1rea7iliOIckxxxxxxxxxxxxxxx [2001:41d0:xxx:xxx::xxx]: "\n\n \n -
Hey there! Great job troubleshooting this up to this point! Since the plain text.txt file doesn't work in a browser, it is almost certainly something with the Magento installation causing the redirect. A quick test would be to try temporarily renaming the .htaccess file for the domain to .htaccess.bak so it can't be used by the system, and then see if the test.txt file will load. If so, there is either a .htaccess redirect in place causing this, or something in Magento causing this. I'm not aware of anything on the cPanel side of things that would keep that file from loading normally. Let us know what you find! 0 -
Hey there! Great job troubleshooting this up to this point! Since the plain text.txt file doesn't work in a browser, it is almost certainly something with the Magento installation causing the redirect. A quick test would be to try temporarily renaming the .htaccess file for the domain to .htaccess.bak so it can't be used by the system, and then see if the test.txt file will load. If so, there is either a .htaccess redirect in place causing this, or something in Magento causing this. I'm not aware of anything on the cPanel side of things that would keep that file from loading normally. Let us know what you find!
Hello Jurasssic First of all sorry for the very late feedback. . It was a redirection problem due to the .htaccess file. To solve it I simply commented/rename all the .htaccess file and tried again to execute the command to get the certificate. And it worked, it was able to check the chalenge on with the url : https:// myDomainne.com/.well-known/acme-challenge/ol1rea7iliOIckxxxxxxxxxxxxxxx Thanks again for your help.0 -
I'm glad that's all it ended up being! 0
Please sign in to leave a comment.
Comments
3 comments