I have created ubuntu server 16.04.3 and am trying to install a SSL using Certbot but it doesn’t work.
Steps i took:
1- add-get-repository ppa:certbot/certbot
2- apt-get update
3- apt-get install python-certbot-apache
4- certbot --apache -d domain.com -d www.domain.com
- I have created a server using this same way a few times before but this is the first time i get this which is why i am so confused
After step 4 i then get this error message(this is the complete error from the logs-Heads up its long):
2018-06-15 09:14:38,215:DEBUG:certbot.reporter:Reporting to user: The following errors were reported by the server:
Domain: www.urslamchat.com
Type: unauthorized
Detail: Invalid response from http://www.urslamchat.com/.well-known/acme-challenge/updRX8CbVnGPf7SEtFexN5OPC01TdHSPoEy-1TKh7Kc: "
Not Found
<p"Domain: urslamchat.com
Type: unauthorized
Detail: Invalid response from http://urslamchat.com/.well-known/acme-challenge/-vIk08hpubLcSEBeRYYmTCkiJxcHJqRNYOT7TsWI8CU: "
Not Found
<p"To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address.
2018-06-15 09:14:38,215:INFO:certbot.auth_handler:Cleaning up challenges
2018-06-15 09:14:38,918:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File “/usr/bin/certbot”, line 11, in
load_entry_point(‘certbot==0.22.2’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1266, in main
return config.func(config, plugins)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 1031, in run
certname, lineage)
File “/usr/lib/python3/dist-packages/certbot/main.py”, line 118, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File “/usr/lib/python3/dist-packages/certbot/client.py”, line 350, in obtain_and_enroll_certificate
cert, chain, key, _ = self.obtain_certificate(domains)
File “/usr/lib/python3/dist-packages/certbot/client.py”, line 294, in obtain_certificate
orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
File “/usr/lib/python3/dist-packages/certbot/client.py”, line 330, in _get_order_and_authorizations
authzr = self.auth_handler.handle_authorizations(orderr, best_effort)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 79, in handle_authorizations
self._respond(aauthzrs, resp, best_effort)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 154, in _respond
self._poll_challenges(aauthzrs, chall_update, best_effort)
File “/usr/lib/python3/dist-packages/certbot/auth_handler.py”, line 220, in _poll_challenges
raise errors.FailedChallenges(all_failed_achalls)
certbot.errors.FailedChallenges: Failed authorization procedure. www.urslamchat.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.urslamchat.com/.well-known/acme-challenge/updRX8CbVnGPf7SEtFexN5OPC01TdHSPoEy-1TKh7Kc: "