Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, the curl tool has an option available to display the client-side certificate utilized during the connection. The option is "--cert" followed by the path to the client certificate file, and "--key" followed by the path to the certificate's private key file. The certificate's private key will only be displayed if it's explicitly set with the "--showcerts" option. The full command to display the client-side certificate would be:

curl --cert /path/to/client/cert.crt --key /path/to/client/key.pem --showcerts https://example.com