Cannot Bind to Port 80 and/or 443 on aws

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. crt.sh | 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: www.batvina.net

I ran this command: sudo /opt/bitnami/bncert-tool

It produced this output: Error: There has been an error.
Cannot bind to port 80 and/or 443. These ports are used for Let's Encrypt to
verify the domain DNS configuration. Please stop any services using those ports,
and ensure your system user has permissions to bind to them.

My web server is (include version):

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

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): aws

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

Welcome @IrynaBt

That error comes from bncert itself. I am guessing it is trying to use one or both of those ports and is not able to. You will need to ask on a bncert forum about that. I saw a similar problem linked below.

Let's Encrypt will use port 80 to solve its HTTP Challenge. And, bncert can request that. But, I don't see any problem with port 80 inbound to you from the public internet. This is the kind of connection Let's Encrypt will use. See this successful test: Let's Debug

The error bncert is describing looks like one with an outbound request. This reports a similar problem: Renew SSL failed. Can't restart services now. · Issue #1694 · bitnami/vms · GitHub

Maybe this is helpful too: Learn about the Bitnami HTTPS Configuration Tool

4 Likes

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