-
Notifications
You must be signed in to change notification settings - Fork 168
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
RCORE-2196 Use the Windows trusted root certificates for TLS #7882
Conversation
Pull Request Test Coverage Report for Build yavor.georgiev_443Details
💛 - Coveralls |
@@ -131,6 +131,8 @@ class Context { | |||
/// default certificates for server verification. For OpenSSL, | |||
/// use_default_verify() corresponds to | |||
/// SSL_CTX_set_default_verify_paths(SSL_CTX*); | |||
/// | |||
/// On Windows this also adds a lookup to the system Trusted Root Certification Authorities list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to know if it failed to find certs for whatever reason so that you could fall back to m_ssl_context.use_included_certificate_roots();
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use_ methods are not mutually-exclusive. You can call as many as you like while you’re setting up your context.
Besides, looking up certificates happens during the SSL handshake, way after you’ve set up the context.
What, How & Why?
If an app runs in an enterprise environment where the machine is configured with a traffic-intercepting firewall any custom SSL certificates issued by the firewall need a new trusted root certificate to be installed on the machine. The interface we currently expose puts the onus on the app developer to provide us with a certificate we can add to the OpenSSL certificate store, but in such an environment the app developer is not able to do so.
What we can do to better conform is to automatically look up certificates in the machine's Trusted Root Certification Authorities store on OpenSSL's behalf and use them for the SSL handshake.
☑️ ToDos