I want to set up certbot for a webserver on a different port than 443. I got the following error when running
certbot --apache -d <sub>.<domain>.<ext>
Failed authorization procedure. sub.domain.ext (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Failed to connect to external_ip:443 for TLS-SNI-01 challenge
After this error I've read the man pages, where I found this:
--tls-sni-01-port TLS_SNI_01_PORT Port number to perform tls-sni-01 challenge. Boulder in testing mode defaults to 5001. (default: 443)
Then I tried the following to correct this error:
certbot --apache --tls-sni-01-port 14831 -d <sub>.<domain>.<ext>
After adding the tls-sni-01-port, I got the same error.
Is it possible to install a certificate with a different port, or am I doing something wrong?