You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected the verify_hostname attr of the ssl_context to be set to false and passed to the OpenSSL gem with that value so that hostname is not verified and I can successfully connect to the broker.
Actual outcome
The verify_hostname attribute is ignored unless I explicitly pass in a ca_cert* parameter. Since it is defaulted to true in the OpenSSL gem, I'm getting these SSL errors:
I'm able to get around this by either downgraded to Ruby v2.3.3 (where that version of OpenSSL does not default verify_hostname) or by setting ssl_ca_certs_from_system: true in v2.6.0, which I don't need in my case since my client_cert is a combined cert. I can open up a PR to move the verify_hostname assignment out of this conditional but wanted to check if that was intentional and expected.
The text was updated successfully, but these errors were encountered:
lairen
changed the title
ssl_verify_hostname var is ignored for unless also specifying a ca_cert var
ssl_verify_hostname var is ignored unless also specifying a ca_cert var
May 5, 2020
Steps to reproduce
Expected outcome
I expected the
verify_hostname
attr of thessl_context
to be set to false and passed to the OpenSSL gem with that value so that hostname is not verified and I can successfully connect to the broker.Actual outcome
The
verify_hostname
attribute is ignored unless I explicitly pass in aca_cert*
parameter. Since it is defaulted totrue
in the OpenSSL gem, I'm getting these SSL errors:I'm able to get around this by either downgraded to Ruby v2.3.3 (where that version of OpenSSL does not default
verify_hostname
) or by settingssl_ca_certs_from_system: true
in v2.6.0, which I don't need in my case since myclient_cert
is a combined cert. I can open up a PR to move theverify_hostname
assignment out of this conditional but wanted to check if that was intentional and expected.ruby-kafka/lib/kafka/ssl_context.rb
Lines 45 to 60 in 0d64a9b
The text was updated successfully, but these errors were encountered: