SSL Certificates - OS X Mavericks

前端 未结 4 809
故里飘歌
故里飘歌 2020-12-30 08:02

I am trying to connect to application on localhost which uses SSL. I am using Mac OS X Mavericks. The error I am getting is following:

Error sending cURL ge         


        
4条回答
  •  执笔经年
    2020-12-30 08:26

    There are two things you can do:

    (1) Convert the .pem certificate to .p12:

    openssl pkcs12 -export -out my_certificate.p12 -inkey my_certificate.pem -in my_certificate.pem`
    

    and use it with curl with the PASSWORD you pick when converting:

    curl --cert my_certificate.p12:PASSWORD.
    

    (2) Drag the .pem file into your keychain, open the infopane, set it to 'always trust' for SSL and X.509, and note the COMMON-NAME. (name of certificate)

    curl --cert COMMON-NAME
    

    Both work for me on OSX 10.9 with cURL 7.35.0

提交回复
热议问题