How to debug SSL handshake using cURL?

Bajo picture Bajo · Jul 19, 2013 · Viewed 120.8k times · Source

I would like to troubleshoot per directory authentication with client certificate. I would specially like to find out which acceptable client certificates does server send.

How do I debug SSL handshake, preferably with cURL?

Thanks in advance

Answer

Christian Davén picture Christian Davén · Apr 2, 2014

I have used this command to troubleshoot client certificate negotiation:

openssl s_client -connect www.test.com:443 -prexit

The output will probably contain "Acceptable client certificate CA names" and a list of CA certificates from the server, or possibly "No client certificate CA names sent", if the server doesn't always require client certificates.