Jump to content

curl error unable to set private key file: 'certificate.pem' type PEM


tibberous

Recommended Posts

I am trying to use the linkpoint API. It uses SSL through curl - both of which I have turned on.

 

curl_setopt ($ch, CURLOPT_SSLCERT, 'certificate.pem');

$result = curl_exec ($ch);

 

Returns false, and curl_error say:

 

curl error unable to set private key file: 'certificate.pem' type PEM

 

To make my PEM file, I went to my website, clicked the cert, and exported it as a PEM. I tried with and without a chain, made sure to set the encoding to ASCII and the line terminator to LF.

 

Anyone have any idea's what to do?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.