My domain is: www.an.org.uk
I ran this command: ./certbot-auto -d www.an.org.uk
It produced this output:
…
…
Domain: www.an.org.uk
Type: connection
Detail: Failed to connect to 80.67.93.213:443 for TLS-SNI-01
challenge
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you’re using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
My operating system is (include version): Debian wheezy
My web server is (include version): Apache/2.2.22 (Debian)
My hosting provider, if applicable, is: not applicable
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): no
I tried this first when I had old Apache config with expired and wrong-domain certs. https://www.an.org.uk worked after adding a security exception in Firefox, so the address resolved and ssl worked.
The documentation seems to say that only port 80 is required to run certbot, so I removed all SSL config and reran certbot. But it still enabled SSL and used TLS-SNI-01, and fails in the same way. Running certbot-auto without -d is the same.
At various stages in the process I ran
me@remote:~$ openssl s_client -connect www.an.org.uk:443 and always got:
CONNECTED(00000003)
3073504960:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:794:
no peer certificate available
No client certificate CA names sent
SSL handshake has read 7 bytes and written 305 bytes
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.2
Cipher : 0000
Session-ID:
Session-ID-ctx:
Master-Key:
Key-Arg : None
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 1489492584
Timeout : 300 (sec)
Verify return code: 0 (ok)
Obviously certbot can’t require a fully configured SSL. That’s what it’s there to create. But does it require some Apache SSL config to exist? Does it require an existing keypair to certify, or will it create one if not found?