Skip to content
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

Do not suggest nonsensical OpenSSL verify modes #1008

Closed
wants to merge 1 commit into from

Conversation

jhass
Copy link
Contributor

@jhass jhass commented Jun 7, 2016

SSL_set_verify(3) explains:

SSL_VERIFY_FAIL_IF_NO_PEER_CERT
  Server mode: if the client did not return a certificate, the TLS/SSL handshake is immediately terminated with a "handshake failure" alert.  This flag must
  be used together with SSL_VERIFY_PEER.

  Client mode: ignored

SSL_VERIFY_CLIENT_ONCE
  Server mode: only request a client certificate on the initial TLS/SSL handshake. Do not ask for a client certificate again in case of a renegotiation.
  This flag must be used together with SSL_VERIFY_PEER.

  Client mode: ignored

The SMTP connection here uses an OpenSSL socket in client mode, suggesting invalid flags is rather misleading.

SSL_set_verify(3) explains:

SSL_VERIFY_FAIL_IF_NO_PEER_CERT
  Server mode: if the client did not return a certificate, the TLS/SSL handshake is immediately terminated with a "handshake failure" alert.  This flag must
  be used together with SSL_VERIFY_PEER.

  Client mode: ignored

SSL_VERIFY_CLIENT_ONCE
  Server mode: only request a client certificate on the initial TLS/SSL handshake. Do not ask for a client certificate again in case of a renegotiation.
  This flag must be used together with SSL_VERIFY_PEER.

  Client mode: ignored


The SMTP connection here uses an OpenSSL socket in client mode, suggesting invalid flags is rather misleading.
@jhass
Copy link
Contributor Author

jhass commented Aug 4, 2016

Any issue with this? Rails accepted the same change to their documentation.

@jeremy
Copy link
Collaborator

jeremy commented Dec 6, 2016

Thanks @jhass! Merged @ 120f0b4

@jeremy jeremy closed this Dec 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants