Unable to issue certificate

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: awesomewebapps.com

I ran this command: sudo certbot --apache

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log

Which names would you like to activate HTTPS for?


1: awesomewebapps.com
2: www.awesomewebapps.com


Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): 1
Requesting a certificate for awesomewebapps.com

Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: awesomewebapps.com
Type: unauthorized
Detail: 2a02:4780:11:770:0:1391:f943:5: Invalid response from http://awesomewebapps.com/.well-known/acme-challenge/g9Zn6gFp4X0CPsKy_wbWnVcderhiQ3lJu5bBtQq9_X0: 404

Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.

Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

My web server is (include version): EC2

The operating system my web server runs on is (include version): linux

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know): yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
certbot 1.21.0

Logs for /var/log/letsencrypt/letsencrypt.log

2023-06-26 09:24:32,088:DEBUG:acme.client:Storing nonce: 1AADSa1lBDuzq0EqI6VL3udrT4skB6k3pINLnEUbgVRnzqc
2023-06-26 09:24:32,089:INFO:certbot._internal.auth_handler:Challenge failed for domain awesomewebapps.com
2023-06-26 09:24:32,089:INFO:certbot._internal.auth_handler:http-01 challenge for awesomewebapps.com
2023-06-26 09:24:32,089:DEBUG:certbot._internal.display.obj:Notifying user:
Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: awesomewebapps.com
Type: unauthorized
Detail: 2a02:4780:11:770:0:1391:f943:5: Invalid response from http://awesomewebapps.com/.well-known/acme-challenge/g9Zn6gFp4X0CPsKy_wbWnVcderhiQ3lJu5bBtQq9_X0: 404

Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.

2023-06-26 09:24:32,090:DEBUG:certbot._internal.error_handler:Encountered exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 90, in handle_authorizations
self._poll_authorizations(authzrs, max_retries, best_effort)
File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 178, in _poll_authorizations
raise errors.AuthorizationError('Some challenges have failed.')
certbot.errors.AuthorizationError: Some challenges have failed.

2023-06-26 09:24:32,090:DEBUG:certbot._internal.error_handler:Calling registered functions
2023-06-26 09:24:32,090:INFO:certbot._internal.auth_handler:Cleaning up challenges
2023-06-26 09:24:32,779:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/bin/certbot", line 33, in
sys.exit(load_entry_point('certbot==1.21.0', 'console_scripts', 'certbot')())
File "/usr/lib/python3/dist-packages/certbot/main.py", line 15, in main
return internal_main.main(cli_args)
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1574, in main
return config.func(config, plugins)
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 1287, in run
new_lineage = _get_and_save_cert(le_client, config, domains,
File "/usr/lib/python3/dist-packages/certbot/_internal/main.py", line 133, in _get_and_save_cert
lineage = le_client.obtain_and_enroll_certificate(domains, certname)
File "/usr/lib/python3/dist-packages/certbot/_internal/client.py", line 459, in obtain_and_enroll_certificate
cert, chain, key, _ = self.obtain_certificate(domains)
File "/usr/lib/python3/dist-packages/certbot/_internal/client.py", line 389, in obtain_certificate
orderr = self._get_order_and_authorizations(csr.data, self.config.allow_subset_of_names)
File "/usr/lib/python3/dist-packages/certbot/_internal/client.py", line 439, in _get_order_and_authorizations
authzr = self.auth_handler.handle_authorizations(orderr, self.config, best_effort)
File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 90, in handle_authorizations
self._poll_authorizations(authzrs, max_retries, best_effort)
File "/usr/lib/python3/dist-packages/certbot/_internal/auth_handler.py", line 178, in _poll_authorizations
raise errors.AuthorizationError('Some challenges have failed.')
certbot.errors.AuthorizationError: Some challenges have failed.
2023-06-26 09:24:32,780:ERROR:certbot._internal.log:Some challenges have failed.

Are you sure you are using Apache? When I visit your domain, it's served by a Litespeed server hosted with Hostinger.

3 Likes

i have EC2 instance.
yes I am using apache

What's your EC2 instance's public IP address?

4 Likes

If both names lead to [the same content within] the same vhost, then you should get a cert with both names on it.

3 Likes

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