PHP curl send public key -


I am trying to connect to an API and I am told that to match the public key, Need to send a public key I sent them via email.

I am setting up the public key by using:

  curl_setopt ($ c, CURLOPT_SSLCERT, [path file]);  

I am getting this error:

Unable to set a private key file: [path of file] Type PEM

Am I missing something? I know that key-based encryption generally requires a personal and public key, but they wanted to send me a public key especially via email and especially wanted to send me a public key through code .

It turns out that I also need CURLOPT_SSLKEY which is a private key, apparently to both CRL Required, but only send the public key?


Comments

Popular posts from this blog

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -