cURL with SSL certificates fails: error 58 unable to set private key file

后端 未结 2 1934
天命终不由人
天命终不由人 2020-12-17 18:13

I\'m trying to connect to a remote host using cURL. The connection requires the use of a certificate and a private key which is password protected. So far I\'m unsuccessful

2条回答
  •  萌比男神i
    2020-12-17 18:23

    Just in case this is useful to others searching for this problem, I ended up discovering that CURLOPT_SSLCERT and CURLOPT_SSLKEY don't seem to work with relative paths.

    This is with WAMP, php version 5.5 on Windows.

提交回复
热议问题