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
Copy file name to clipboardExpand all lines: README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -888,6 +888,21 @@ kafka = Kafka.new(
888
888
889
889
Without passing the CA certificate to the client it would be impossible to protect against [man-in-the-middle attacks](https://en.wikipedia.org/wiki/Man-in-the-middle_attack).
890
890
891
+
##### Using your system's CA cert store
892
+
893
+
If you want to use the CA certs from your system's default certificate store, you
894
+
can use:
895
+
896
+
```ruby
897
+
kafka =Kafka.new(
898
+
ssl_ca_certs_from_system:true
899
+
# ...
900
+
)
901
+
```
902
+
903
+
This configures the store to look up CA certificates from the system default certificate store on an as needed basis. The location of the store can usually be determined by:
904
+
`OpenSSL::X509::DEFAULT_CERT_FILE`
905
+
891
906
##### Client Authentication
892
907
893
908
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.
0 commit comments