My Pem file is in this format.
Bag Attributes
localKeyID:
friendlyName: test
subject=/C=GB/ST=London/L=Soho/O=Rightmove/OU=RTDF/CN=cmexpertise
issuer=/C=GB/ST=L
There are two errors.
Code,
curl_setopt($ch,CURLOPT_SSLCERTTYPE,"PEM");
curl_setopt($ch, CURLOPT_SSLCERT, "test.pem");
curl_setopt($ch, CURLOPT_SSLCERTPASSWD, '******'); // password