Let's encrypt ownership verification?


#1

I’m following this tutorial https://www.kosinix.com/install-lets-encrypt-certificate-on-shared-hosting/ to install LE certificate, but in the 6 step I didn’t know where’s the .well-known directory ( I’m using Godaddy CPanel ) and what’s the extension of the file that I should create in .well-known/acme-challenge/


#2

The file should NOT have any extension

And the .well-known directory won’t necessarily already exist, although it might. So if you can’t find one, where would you put a file that you expected to appear as the front page of your site? Probably the .well-known directory needs to go inside that directory, try creating it there. I’m not a Godaddy Cpanel user though, so if another Godaddy user knows better hopefully they’ll speak up.


#3

so I should have /home/me/.well-known/acme-challenge?


#4

The files need to be available at the following url: http://example.com/.well-known/acme-challenge/{random_token}.

That means you’ll need to put them in the “root” directory of your web server. if that’s /home/me/ in your case, that path is correct.


#5

I’ve created the two file but got : self verify of challenge failed
self verify of challenge failed
Failed authorization procedure. itravvel.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://itravvel.com/.well-known/acme-challenge/jgYS0idOtIaTCsflp67CxZJHSoZLqnG6fLxT8-7sOmw: "<!doctype html >

<!" then some IMPORTANT NOTES.

#6

Your web server is replying with a 404 for that URL (you can just open it in your browser to test that yourself). You either got the wrong directory, or something else is interfering (like for example a .htaccess file that rewrites all requests).


#7

I think it has to do with encoding type, because the LE client uses only text/plain but in cpanel when I copy the content to those files I have text/xgeneric utf-8.


#8

Your site is replying with a 404 and a website instead of the verification token. Encoding is not related, and is not even checked anymore (it used to be in the very early phase).


#9

Okay thanks, any suggestion in mind?


#10

Yes, check the following:


#11

Thank you for your help, the problem is that .well-known/acme-challege should be created in /home/me/public_html


#12

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