Invalid key authorization 15 parts

Hello,

I've got a problem with my certificate. I do this:

./letsencrypt-auto certonly -a manual -d domain.com --server acme-v01.api.letsencrypt.org/directory --agree-dev-preview

I get this:

Make sure your web server displays the following content at
domain.com/.well-known/acme-challenge/QmE0GFyF7PwX4J8a6F9PItO0q7erTw3rDrtBAgP9Gpw before continuing:

QmE0GFyF7PwX4J8a6F9PItO0q7erTw3rDrtBAgP9Gpw.lpqNGa7M3bSSl6E-RWIMaZqkbsbWrkV7mECugTTW9aU

If you don't have HTTP server configured, you can run the following
command on the target server (as root):

mkdir -p /tmp/letsencrypt/public_html/.well-known/acme-challenge
cd /tmp/letsencrypt/public_html
printf "%s" QmE0GFyF7PwX4J8a6F9PItO0q7erTw3rDrtBAgP9Gpw.lpqNGa7M3bSSl6E-RWIMaZqkbsbWrkV7mECugTTW9aU > .well-known/acme-challenge/QmE0GFyF7PwX4J8a6F9PItO0q7erTw3rDrtBAgP9Gpw
run only once per server:
$(command -v python2 || command -v python2.7 || command -v python2.6) -c
"import BaseHTTPServer, SimpleHTTPServer;
s = BaseHTTPServer.HTTPServer(('', 80), SimpleHTTPServer.SimpleHTTPRequestHandler);
s.serve_forever()"
Press ENTER to continue

I press enter and :

Failed authorization procedure. alias-serveur.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Error parsing key authorization file: Invalid key authorization: 15 parts

IMPORTANT NOTES:

  • The following 'urn:acme:error:unauthorized' errors were reported by
    the server:

Domains: alias-serveur.com
Error: The client lacks sufficient authorization

Someone can help me ?

My files is: http://puu.sh/m49hY/6a50f38136.png

When you get to the point where it says

Make sure your web server displays the following content at
domain.com/.well-known/acme-challenge/QmE0GFyF7PwX4J8a6F9PItO0q7erTw3rDrtBAgP9Gpw before continuing:

QmE0GFyF7PwX4J8a6F9PItO0q7erTw3rDrtBAgP9Gpw.lpqNGa7M3bSSl6E-RWIMaZqkbsbWrkV7mECugTTW9aU

Did you create that file (I'm guessing so from your picture link.) ?

Did you then check you could reach that for your domain in a browser ? ie can a general browser get the file from alias-serveur.com/.well-known/acme-challenge/QmE0GFyF7PwX4J8a6F9PItO0q7erTw3rDrtBAgP9Gpw ?

if I try I get a "file not found" possibly as the file has since been removed, or it could be because you have some redirects in place which don't provide access to that folder / file.

When i execute the command, i create the folder and file with the key before press continue, and my browser reach the file correctly, but LE client get error unauthorized : 15 parts , What is this error ?

The file must be Empty ?

I have create an example here : http://alias-serveur.com/.well-known/acme-challenge/ylcu318g-0yC303Y7xltpGFLDCeadk2806PrW2SgSMw/

is what to do?

It looks as if you have created a folder there - which had another file in it.

In the example ;

Make sure your web server displays the following content at
domain.com/.well-known/acme-challenge/aaaaaaaaa before continuing:

bbbbbbbbbbbbb

You need to create the file (with name aaaaaaaaa ) and the contents of that file should be bbbbbbbbbbbbb

It looked as if you created a folder with the first name, and then a file within that folder of the second name.

It should just be one file (aaaaaaaaa in my example), with the contents that are as requested ( bbbbbbbbbbb in my example)

Now i get this :

Failed authorization procedure. alias-serveur.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Error parsing key authorization file: Invalid key authorization: 14 parts

IMPORTANT NOTES:

  • The following 'urn:acme:error:unauthorized' errors were reported by
    the server:

Domains: alias-serveur.com
Error: The client lacks sufficient authorization

I placed my file in the wrong forlder,

Now it work, thanks a lot !

1 Like

Iā€™m glad you got it all working :smiley: