Curl with SSL Cert on V11

Hi, on v10 boxes I used to curl as below

curl -kv https://1.1.1.1:443 --cert /config/ssl/ssl.crt/mycert.crt --key /config/ssl/ssl.key/mycert.key

On v11 boxes the cert locations have obviously changed. Now I am struggling to recreate the curl command I need

I have this command

"curl -kv https://1.1.1.1:443 --cert /config/filestore/files_d/Common_d/certificate_d/\:Common\:mycert.crt_1_1 --key /config/filestore/files_d/Common_d/certificate_key_d/\:Common\:mycert.key_1_1

but it gives me the error : unable to use client certificate (no key found or wrong pass phrase?) * Closing connection 0 curl: (58) unable to use client certificate (no key found or wrong pass phrase?)

any help please ???

Hi Dan,

Maybe the private key is encrypted using a passphrase. Verify this using following command :

cat /config/filestore/files_d/Common_d/certificate_key_d/\:Common\:mycert.key_1_1

If it starts with

“-----BEGIN ENCRYPTED PRIVATE KEY-----”

=> you will need the passphrase to read it

else if it begins with:

“-----BEGIN PRIVATE KEY-----”

=> you have another issue

Thanks