Forum Discussion

BJ_114988's avatar
BJ_114988
Icon for Nimbostratus rankNimbostratus
Feb 03, 2017

client cert or ca bundle to server

while doing curl or openssl how to present client cert or ca bundle to server

 

i am doing it to test https health monitor

 

i tried doing it by using

 

curl -v --cert --key

 

but it always giving error saying

 

  • 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?)

Can someone tell me how to specify path in it with example ?

 

i am looking for exact syntax

 

my certs are stored in /config/ssl/ssl.crt

 

and keys in /config/ssl/ssl.key

 

also let me know if format of certs or key matters ?

 

1 Reply

  • FMA's avatar
    FMA
    Icon for Nimbostratus rankNimbostratus

    Hey,

    Here is my template I use for such tasks:

    If your key has no password protection:

    curl -k -v https://yourdsturlhere.com --pass"" --cert /config/filestore/files_d/Common_d/certificate_d/\:Common\:your_cert --key /config/filestore/files_d/Common_d/certificate_key_d/\:Common\:your_key

    In case there is a password, but it within brackets of

    --pass""
    argument.