-
I am trying to renew a cert without stopping the httpd webserver first. This is the command I am using:
The command above works just fine if I stop the http server before issuing the cmd. But if I don't stop the http server, I see the error: "could not start HTTPS server for challenge: listen tcp :443: bind: address already in use" How can I tell lego to not try to start the http server because it's already running? Here is the full output:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi, The TLS challenge starts a server on the 443. So if you have something that already uses (binds) port 443, the lego server used for this challenge cannot start. Is it your choice to use TLS challenge? Do you have some constraints? |
Beta Was this translation helpful? Give feedback.
Sorry, I misread your command, you are not using the HTTP challenge
--http
but the TLS challenge--tls
but the problem is the same.The TLS challenge
--tls
uses port 443.The HTTP challenge
--http
uses port 80.I think your web server is running in ports 443 and 80.
The 2 types of challenges will cause a port binding problem.
But if your web server doesn't run on port 80, you can use the following command (but I think it will not work):
If the previous command doesn't work, you can use your web server to handle the HTTP challenge.