I'm trying to collect some data using Curl
, connecting to service that some external company provided. They, in addition to address itself, sent me p12
certificate file that is required to estabilish connection.
When I'm trying to use it with curl
, I get following error:
#58: not supported file type 'P12' for certificate
So far I've tried updating curl and php-curl. Nothing changed.
My code:
...
curl_setopt($ch, CURLOPT_SSLCERT, 'cert_path');
curl_setopt($ch, CURLOPT_SSLCERTTYPE, 'P12');
curl_setopt($ch, CURLOPT_SSLCERTPASSWD, 'my_pass');
...
Funny thing is that this code works on our production environment, while it doesn't work on my local machine (Linux Mint 16).