-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Default using Windows Schannel for SSL/TLS on Windows #2116
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
base: master
Are you sure you want to change the base?
Default using Windows Schannel for SSL/TLS on Windows #2116
Conversation
I noticed that there is |
@solarispika sorry for the delay. According to this comment #1978 (comment), you mentioned you ended up bypassing CRL in your production server. Do you think that the current pull request which doesn't have the bypassing code will affect a number of Windows users? If not many, I don't mind merging this code. But it has a risk to affect many users, I would like you to implement a feature flag like |
Hi @yhirose I am not sure how many of them will be, possibly the number being proportional to users located in China. |
@solarispika , (1) If a number of users will be affected by this, I prefer making it an opt-in feature with (2) But if we expect only few users will be affected, we can enable this feature by the default and uses can disable it with I prefer #2. |
f97e72c
to
4661630
Compare
@yhirose |
4661630
to
bb7c085
Compare
Could you please take a look at unit test errors on 'test / windows with SSL (pull_request)'? |
Sure, it looks like #2169 saves openssl errors which I didn't notice. |
I found that it is hard to map errors between Win32 API and OpenSSL. What do you recommend? Is it proper to mask those checks when Schannel is used? |
@solarispika I actually don't know what do to. Could you please investigate why those errors occur before making any change? |
@yhirose As those member functions are defined for OpenSSL, it is inappropriate for me to use it directly for errors coming from Windows API. |
Follow
https://learn.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-certgetcertificatechain for related flags.
Closes #1978