Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transport tls: use SSL_VERIFY_NONE by default
VERIFY_NONE should be used when `client_cert_auth false` (default). Before this fix, we need to set `insecure true` for this. However, `insecure` option should mainly be for cipher strength. It would not be intended VERIFY_PEER without VERIFY_FAIL_IF_NO_PEER_CERT was used even if `client_cert_auth false`. (When VERIFY_PEER without VERIFY_FAIL_IF_NO_PEER_CERT, server does certification only when clients send its certificate. This would be why we overlooked it long time) Before: | insecure | client_cert_auth | verify_mode | | false | fales | VERIFY_PEER | | false | true | VERIFY_PEER, VERIFY_FAIL_IF_NO_PEER_CERT | | true | false | VERIFY_NONE | | true | true | VERIFY_PEER, VERIFY_FAIL_IF_NO_PEER_CERT | After: | insecure | client_cert_auth | verify_mode | | false | fales | VERIFY_NONE | | false | true | VERIFY_PEER, VERIFY_FAIL_IF_NO_PEER_CERT | | true | false | VERIFY_NONE | | true | true | VERIFY_PEER, VERIFY_FAIL_IF_NO_PEER_CERT | Signed-off-by: Daijiro Fukuda <[email protected]>
- Loading branch information