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

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

android - how to get distance of 2 beacons and make a condtion base on that distance -

c# - WPF Expander overlay used in ItemsControl -