cpp-httplib
cpp-httplib copied to clipboard
Provides a way to ignore host verify
When setting the client authentication mode to SSL_VERIFY_NONE, the host verification is not ignored.
Provides a way to ignore host verify.
Use enable_server_certificate_verification(false) method on SSLClient
Use
enable_server_certificate_verification(false)method onSSLClient
- Java spring boot and python http client generally support two options, enabling ssl authentication and whether to ignore host_name authentication, which is more flexible.
- cpp-httplib now has SSL authentication enabled and must verify the hostname, which is too inflexible.
@yhirose @PixlRainbow
Ah, so you want to still run SSL_get_verify_result https://github.com/yhirose/cpp-httplib/blob/548dfff0aef25e36e971af96b49ce7fbb72d840e/httplib.h#L8759-L8760
But have an option to skip just verify_host
https://github.com/yhirose/cpp-httplib/blob/548dfff0aef25e36e971af96b49ce7fbb72d840e/httplib.h#L8774-L8778
The curl equivalent being CURLOPT_SSL_VERIFYHOST = 0
Ah, so you want to still run
SSL_get_verify_resulthttps://github.com/yhirose/cpp-httplib/blob/548dfff0aef25e36e971af96b49ce7fbb72d840e/httplib.h#L8759-L8760
But have an option to skip just
verify_hosthttps://github.com/yhirose/cpp-httplib/blob/548dfff0aef25e36e971af96b49ce7fbb72d840e/httplib.h#L8774-L8778The curl equivalent being
CURLOPT_SSL_VERIFYHOST = 0
Yes, httplib does not provide this capability now
Thanks for the clear explanation.