Ask Your Question
3

Does the curl tool have an option available to display the client side certificate utilized during the connection?

asked 2023-02-13 11:00:00 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-12-26 01:00:00 +0000

pufferfish gravatar image

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
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-02-13 11:00:00 +0000

Seen: 10 times

Last updated: Dec 26 '22