-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Openssl::with_cert_and_key certificate verification #752
Comments
Yes, your guess is correct. I assumed most people wanting an easy constructor with a cert and key were using it for a server, not a client. |
Related to #472 |
Ever since #757, there are now separate traits for server and client TLS use. That said, there still needs to exist a crate that actually verifies the certificates for this to be completed. In my opinion, this issue can be closed as a duplicate of #472. |
Isn't hostname verification different than certificate verification? |
The ssl feature has been removed, so I believe this issue can be closed. |
Indeed, SSL was removed, see #985. |
I noticed that
Openssl::with_cert_and_key
disables certificate verification, shown below for convenience:I'm guessing this is done because the expected use is for a server accepting connections from clients without client certificates. However, if someone uses this method for setting up a client to present a client certificate to a server, this will disable verification of the server's certificate.
Is my understanding here correct? If so, I think there should be two separate methods depending on whether it's intended for client or server use. At the very least, the documentation for the current method should make it very clear that it's not safe to use on the client side when using client certificates.
The text was updated successfully, but these errors were encountered: