Bind port 80 permission denied #1242
-
Trying to complete an ACME request through step-cli Receiving this error - "ListenAndServe(): listen tcp :80: bind: permission denied" Tried running with sudo and this is what is returned "flag '--ca-url' is required unless the '--token' flag is provided" I have a private local CA configured with step-ca. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @codycrypto, the error happens because step/step-cli does not have permission to listen on port 80, required by the http-01 challenge. There are different solutions for that. If you're in a Linux or a macOS, you can run it with
On windows, I don't really know, running that as administrator? The problem can also be that there's another program running on port 80. |
Beta Was this translation helpful? Give feedback.
Hi @codycrypto, the error happens because step/step-cli does not have permission to listen on port 80, required by the http-01 challenge.
There are different solutions for that. If you're in a Linux or a macOS, you can run it with
sudo
. Alternatively, on a Linux, you can also add capabilities to the binary, a command like:On windows, I don't really know, running that as administrator?
The problem can also be that there's another program running on port 80.