-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Use OpenSSL default when certificate location not set #534
Conversation
@jp39, thanks for the pull request, but there are a number of unit test cases failed. (Some tests are failing right now due to the httpbin.org issue, but it seems like this pull request breaks other unit tests...) |
Also, do not disable certificate verification when using default OpenSSL certificate location. This is a pretty reasonable default setting for security.
@jp39, any update about the build errors? Thanks! |
@yhirose, there are a few tests failing already for me even on the master branch:
Now, with my patch, I see these failing:
This is very curious because my change is only located in the SSLClient class. So I can't see why it would make the Server fail. The SSLClientTest.ServerCertificateVerification2 test should probably be removed though because it's asserting that the certificate verfication fails when doing a GET on a google URL. |
@jp39, thanks for the report. But all unit tests in the master branch on CIs (Github actions and AppVeyor) pass successfully. It seems further careful investigation is needed to include the pull request. Thanks for your efforts! |
Yeah, I'll take a deeper look into it when I get the chance. Also, I intend to update my PR a little if you agree:
|
@jp39, thanks for your attention to this issue.
I basically agree with you. Only thing (but a big thing) is that users now have to call either To mitigate the migration pain, we may need to use the system default ca-bundle if a user doesn't call
You may be correct. I'll try to test if it works on my Mac as well. |
@jp39, I just tried to implement both you suggested. I confirmed that it works on Mac OS |
@yhirose Thanks for looking into it. |
Also, do not disable certificate verification when using default OpenSSL
certificate location. This is a pretty reasonable default setting for
security.