CURL to pass SSL certifcate and password

Adam picture Adam · Sep 25, 2013 · Viewed 124.9k times · Source

I need to specify a certificate with CURL i tried with --cert option it is not working.

Could you please let me know to specify the keystore and passpharse while invoking with curl?

Answer

Welsh picture Welsh · Sep 25, 2013

Should be:

curl --cert certificate_file.pem:password https://www.example.com/some_protected_page