Passing .PEM and .KEY as string in Curl using PHP

前端 未结 4 2016
星月不相逢
星月不相逢 2021-02-12 20:56

I\'ve a CERT and private key files. I\'m using cUrl and PHP to connect to another service. At the moment, I\'ve cert and key in files and it works perfectly fine with following

4条回答
  •  星月不相逢
    2021-02-12 21:25

    I'm not SSL Expert but CURLOPT_SSLKEY is private.pem file of the CURLOPT_SSLCERT public.pem file?

    My parameters

    CURLOPT_CAINFO => /path/cacert.pem
    CURLOPT_SSLKEY => /path/private.pem
    CURLOPT_SSLCERT => /path/public.pem
    

    Try my suggested answer and let me know if it is helpful or not.

提交回复
热议问题