Open viter7960 opened 6 years ago
This function is to let our client ignore the error when ssl authentication, in fact, the role is to let the client ignore the authentication of the server certificate.I think your mistake is that the client can't provide his certificate to the server. Can you try this way? http_client_config client_config ; client_config.set_ssl_context_callback([&buffer](boost::asio::ssl::context &ctx) { ctx.load_verify_file("/etc/ssl/certs/ca-bundle.crt");//your path to pem } if not work,i think you can find solution in file boost::asio::ssl context.hpp;
The message from WinHTTP indicates that the server wants to do client authentication -- that is, the server wants to validate the client in the SSL handshake. set_validate_certificates
controls whether Cpprestsdk attempts to validate that the server is correct, but to turn off the server's validation of the client I think you would need to reconfigure the server on the other end to do that?
Hi, I'm using cpprestsdk 2.9.1 from nuget and making a call to azure log analytics (data collector api). It is a simple post request like following to send simple json content to the cloud.
But the certificate validation disabling is not working since I always receive Message "WinHttpSendRequest: 12044: A certificate is required to complete client authentication" from server.
Any help ?
Thanks.