Skip to content

Commit

Permalink
Merge pull request #856 from contrun/patch-1
Browse files Browse the repository at this point in the history
change parameter to ssl_verify_hostname in readme
  • Loading branch information
dasch committed Aug 10, 2020
2 parents 9a2a326 + eb3cf10 commit 5a360ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ This configures the store to look up CA certificates from the system default cer

In order to authenticate the client to the cluster, you need to pass in a certificate and key created for the client and trusted by the brokers.

**NOTE**: You can disable hostname validation by passing `verify_hostname: false`.
**NOTE**: You can disable hostname validation by passing `ssl_verify_hostname: false`.

```ruby
kafka = Kafka.new(
Expand All @@ -981,6 +981,7 @@ kafka = Kafka.new(
ssl_client_cert: File.read('my_client_cert.pem'),
ssl_client_cert_key: File.read('my_client_cert_key.pem'),
ssl_client_cert_key_password: 'my_client_cert_key_password',
ssl_verify_hostname: false,
# ...
)
```
Expand Down

0 comments on commit 5a360ca

Please sign in to comment.