Open hyiyang opened 7 years ago
AFAIK there is no such functionality (correct me if I'm wrong). The solution is to import your certificate into the windows keystore. The internally used Winhttp will then automatically find the certificate.
@PBRCW Take a look at https://github.com/Microsoft/cpprestsdk/pull/135 and https://github.com/Microsoft/cpprestsdk/issues/314 (none of those are implemented in official REST SDK)
My http_client needs to connect to a https server, currently, this https server uses a self-signed certificate.
On Linux, the http_client works fine by calling below API to set the ca certificate:
But there is no such API on Windows, how to pass cacert.pem to http_client_config on Windows?