Webroot installation failed


#1

Hello

Have used the webroot installation method for my certification because Apache 2.2 auto installation failed yesterday.
all my servers works well but only one subdomain i cannot certificate.
this is my request:
./letsencrypt-auto certonly --webroot -w /var/www/wetter/path/path/ -d subdomain.mydomain.at

i got following error:
Failed authorization procedure. subdomain.mydomain.at (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Error parsing key authorization file: Invalid key authorization: 264 parts

IMPORTANT NOTES:

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

    Domains: subdomain.mydomain.at
    Error: The client lacks sufficient authorization

(subdomain and domain was changed by security reason)

The key folder (.well-known) was generated at the root directory
2015-12-08 14:49:56,558:DEBUG:root:Sending POST request to …
2015-12-08 14:49:56,558:INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
2015-12-08 14:49:56,825:DEBUG:requests.packages.urllib3.connectionpool:"POST /acme/challenge/9PBNYxWsLwbqIMZjJFJghsLD5qGpbvpOVeWxF_pDLXc/1307454 H$
2015-12-08 14:49:56,827:DEBUG:root:Received <Response [202]>. Headers: {‘Content-Length’: ‘312’, ‘Expires’: ‘Tue, 08 Dec 2015 14:49:56 GMT’, 'Serv$
2015-12-08 14:49:56,828:DEBUG:acme.client:Storing nonce: "<\xc7\x7f\x9df\xd2\xe5,\x1fV\x89’p\x86\xce\xee\xc7\x1b\xa7N\xd2\xabx\xa6\xe0\xb7\x88\xfe$
2015-12-08 14:49:56,828:DEBUG:acme.client:Received response <Response [202]> (headers: {‘Content-Length’: ‘312’, ‘Expires’: 'Tue, 08 Dec 2015 14:4$
2015-12-08 14:49:59,831:DEBUG:root:Sending GET request to …
2015-12-08 14:49:59,832:INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
2015-12-08 14:50:00,149:DEBUG:requests.packages.urllib3.connectionpool:“GET /acme/authz/9PBNYxWsLwbqIMZjJFJghsLD5qGpbvpOVeWxF_pDLXc HTTP/1.1” 200 $
2015-12-08 14:50:00,151:DEBUG:root:Received <Response [200]>. Headers: {‘Content-Length’: ‘1221’, ‘Expires’: ‘Tue, 08 Dec 2015 14:50:00 GMT’, 'Str$
2015-12-08 14:50:00,152:DEBUG:acme.client:Received response <Response [200]> (headers: {‘Content-Length’: ‘1221’, ‘Expires’: 'Tue, 08 Dec 2015 14:$
2015-12-08 14:50:00,153:INFO:letsencrypt.reporter:Reporting to user: The following ‘urn:acme:error:unauthorized’ errors were reported by the serve$

Domains: subdomain.mydomain.at
Error: The client lacks sufficient authorization
2015-12-08 14:50:00,153:INFO:letsencrypt.auth_handler:Cleaning up challenges
2015-12-08 14:50:00,153:DEBUG:letsencrypt.plugins.webroot:Removing /var/www/wetter/xxx/xxx/.well-known/acme-challenge/jGmDinFf2mA1mj12b$
2015-12-08 14:50:00,154:DEBUG:letsencrypt.cli:Exiting abnormally:
Traceback (most recent call last):
File “/root/.local/share/letsencrypt/bin/letsencrypt”, line 11, in
sys.exit(main())
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py”, line 1283, in main
return args.func(args, config, plugins)
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py”, line 512, in obtain_cert
_auth_from_domains(le_client, config, domains)
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py”, line 336, in _auth_from_domains
lineage = le_client.obtain_and_enroll_certificate(domains)
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/client.py”, line 283, in obtain_and_enroll_certificate
certr, chain, key, _ = self.obtain_certificate(domains)
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/client.py”, line 266, in obtain_certificate
return self._obtain_certificate(domains, csr) + (key, csr)
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/client.py”, line 224, in _obtain_certificate
authzr = self.auth_handler.get_authorizations(domains)
File “/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/auth_handler.py”, line 84, in get_authorizations

My subdomain Apache configuration is absolute the same as the subdomain which is working fine. Wthat do i wrong ???
Thynks Othmar


Letsencrypt Error: rateLimited :: There were too many requests of a given type :: Error creating new cert :: Too many certificates already issued for: example.com?
#2

I have now solved this problem.
On the base dir a .htaccess file with redir rule was active. I have edit the file to exclude the .well-known directory. Now webroot installation was successfull.