I recently-ish set up an internal (firewalled) apache2 web server that exactly one of my colleagues cannot reach for some reason (PR_END_OF_FILE_ERROR, indicating something's wrong with the handshake/SSL/ciphers). Since I don't have a sufficiently clear idea of the underlying problem there, I'm not aiming to solve his unspecific problem with this question. But:
While trying to understand the issue behind his problems, I noticed the following odd behavior: If I run
openssl s_client -connect 111.222.333.111:443
with the IP address, then I can test all of the ciphers etc. as expected. The connection is established basically instantaneously, everything seems fine. But if I do the same with
openssl s_client -connect my_domainname.com:443
i.e., with the registered domain name, then simply nothing seems to happen, openssl-s_client
doesn't never returns (as if it were still trying to establish a connection forever?) and I cannot get it to give me any output whatsoever.
However, opening my_domainname.com
in a browser works as expected for everyone except that one colleague, and ping
, dig
, nmap
etc. also correctly resolve the domain name.
Conversely,
openssl s_client -connect google.com:443
does work, so it seems I've misconfigured something? Or might something be going wrong with openssl
's DNS resolution?