Im using a webservice that requires autentication it one cliente certificate sended by curl. I already have the certificate (.pem), the public key and the private key (.pem) extracted from a .pfx file.
Im sending then like this:
curl_setopt($ch, CURLOPT_SSLCERT, '_cert.pem');
curl_setopt($ch, CURLOPT_SSLKEY, '_priKEY.pem');
curl_setopt($ch, CURLOPT_SSLCERTTYPE, 'PEM');
curl_setopt($ch, CURLOPT_KEYPASSWD, '****');
But the WS always return the message that i need to send the cliente certificate. Whats is the correct way to send?
Other questions: Did i not need to send the public key file? and "keypasswd" is realy necessary?