This is my public notebook.
openssl s_client -connect www.google.com:443 -showcerts < /dev/null
In case something like this is shown:
CONNECTED(00000003)
140427920371416:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:s23_clnt.c:769:
The simple explanation of this error is that your Certificate might be using SNI and it’s not supported by
your OpenSSL version. This happens if you are using CloudFlare Flex SSL Certificates (As I am).
The workaround is to inform the expected servername. Sample Solution:
openssl s_client -servername nmz.me -connect nmz.me:443 -showcerts < /dev/null
To view CRL contents, simply, download CRL File and:
openssl crl -inform DER -text -noout -in mycrl.crl
openssl ocsp -issuer ./ac.pem -CAfile ./ca_chain.pem -cert ./mycert.pem -url http://myocsp/ocsp/
To perform OCSP validation, you need:
ac.pem
)ca_chain.pem
)mycert.pem
)