cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

Is there a way to force Casablanca to always use TLS 1.2 and refuse to connect otherwise?

Open glukacsy opened this issue 10 years ago • 1 comments

Thanks, Gergely

glukacsy avatar Aug 25 '16 20:08 glukacsy

I have the same requirement. Currently, we did the following

https://github.com/microsoft/cpprestsdk/blob/master/Release/src/http/client/http_client_winhttp.cpp#L918

Change it to DWORD secure_protocols(WINHTTP_FLAG_SECURE_PROTOCOL_TLS1_2); After the recompilation, it seems the Cpprest can still accept TLS 1.0 and TLS 1.1 requests. Can anyone take a look?

SiyiJia avatar Mar 24 '20 21:03 SiyiJia