I need to use cURL to access services to a resource using a certificate. I have only .pfx file. For cURL need two .pem file: CURLOPT_SSLKEY and CURLOPT_SSLCERT, like this:
$ch = curl_init();
----------------------------------
curl_setopt($ch, CURLOPT_SSLCERT, './cert.pem');
curl_setopt($ch, CURLOPT_SSLKEY, './key.pem');
----------------------------------
$output = curl_exec($ch);
How do I get key.pem and cert.pem from single .pfx file?