microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.96k stars 1.65k forks source link

Cannot connect to https with `http_client_winhttp` over proxy from firewall restricted host #1666

Open MarcoWagner opened 2 years ago

MarcoWagner commented 2 years ago

Using http_client_winhttp to establish a HTTPS connection over a application specific proxy configuration (adress and credentials) from a firewall restricted host (which can only connect through this proxy) is not possible. Cryptoapi will fail to check the certificates revocation status and error out.

Sadly there is no configuration flag, other than disabling certification check completely (which is no option at all!), so the cpprestsdk is currently not useable in this scenario.