Skip to content

AWS lightSail having issue while getting SSL certificate through letsEncrypt

0

I am running aws lightsail, wordpress site , linux ubuntu. I am trying to get ssl certificate from LetsEncrypt using. I am getting the following error. ' We encountered an error while configuring the Let's Encrypt SSL/TLS certificate on your instance WordPress-1 in the ap-southeast-1 Region. Try again later. If your WordPress site stopped working, you might need to reboot the instance. You can verify if your WordPress website is working using this public IP address link

"command": "\nif sudo [ -f /var/log/letsencrypt/letsencrypt.log ]; \\nthen sudo tail -n 30 /var/log/letsencrypt/letsencrypt.log \\n&& echo Lightsail SetupInstanceHttps: HTTPS certificate generation failed - see the command output for details.; \\nelse echo Lightsail SetupInstanceHttps: HTTPS certificate generation failed - please try again later.; "dateTime": 1734328009, "name": "GenerateHttpsCertificate", "standardOutput": errors.PluginError(msg)\ncertbot.errors.PluginError: Could not bind TCP port 80 because it is already in use by another process on this system (such as a web server). Please stop the program in question and then try again.\n2024-12-16 05:46:48,907:ERROR:certbot._internal.log:Could not bind TCP port 80 because it is already in use by another process on this system (such as a web server). Please stop the program in question and then try again.\nLightsail SetupInstanceHttps: HTTPS certificate generation failed - see the command output for details.", "status": "Failed", "version": "1"

asked 2 years ago192 views

1 Answer
0

Hello.

As shown in the document below, please stop Nginx and Apache before issuing the certificate, and then try issuing the certificate.
From the content of the error, it appears that the error is caused by port 80 being used by the web server.
https://repost.aws/knowledge-center/lightsail-standard-ssl-certificate

EXPERT

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.