Skip to content
Advertisement

PHP cURL error 58

Need some help understanding the ubiquitous cURL 58 error, which is due to, in this case, including a PEM file with the cURL request.

JavaScript

My code can successfully open the .pem file (see fopen() call) but cURL complains that it cannot set the private key file. Trying to better understand if this something on the client end (me) or something being returned from the host. Pretty sure it’s on my end but not sure what.

Thanks

JavaScript

The key:

JavaScript

Advertisement

Answer

Your file does not contain any private key, only public key.
I think you probably have no reason to use CURLOPT_SSLCERT at all.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement