Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No api to pass ca cert to http_client_config #542

Open
hyiyang opened this issue Sep 13, 2017 · 2 comments
Open

No api to pass ca cert to http_client_config #542

hyiyang opened this issue Sep 13, 2017 · 2 comments

Comments

@hyiyang
Copy link

hyiyang commented Sep 13, 2017

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:

config.set_ssl_context_callback([=](boost::asio::ssl::context &ctx){
            ctx.load_verify_file("cacert.pem");
        });

But there is no such API on Windows, how to pass cacert.pem to http_client_config on Windows?

@PBRCW
Copy link

PBRCW commented Nov 28, 2017

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.

@matra774
Copy link

matra774 commented Feb 19, 2018

@PBRCW Take a look at #135 and #314 (none of those are implemented in official REST SDK)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants