I have been trying to renew my expired ssl certificate on a vm in google cloud, O.S is Ubuntu 8.08 and webserver runs on Apache tomcat 8.5.58. I used the code:
sudo certbot certonly --force-renewal --apache -n -d [CERTIFICATE_NAME]
The result of the above code run is as below, with error codes:
root@ksdev-nnb-org-1:/app/apache-tomcat-8.5.58/bin# sudo certbot --force-renewal --apache -n -d ksdev.nnb.org
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for ksdev.nnb.org
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. ksdev.nnb.org (http-01): urn:ietf:params:acme:error:connection :: The server could
not connect to the client to verify the domain :: Fetching https://ksdev.nnb.org/.well-known/acme-challenge/zHwAzJF
SYhfPTAeUvJ0CAFmxGB6-v2hDoqO9E3yrMZE: Error getting validation data
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: ksdev.nnb.org
Type: connection
Detail: Fetching
https://ksdev.nnb.org/.well-known/acme-challenge/zHwAzJFSYhfPTAeUvJ0CAFmxGB6-v2hDoqO9E3yrMZE:
Error getting validation data
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. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided
Could anyone please provide urgent solutions to this problem for me?