Skip to content

Commit

Permalink
Add docs for TLS authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusjunges committed Oct 6, 2024
1 parent b95f1d8 commit df3f4f3
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/advanced-usage/sasl-authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,18 @@ $consumer = \Junges\Kafka\Facades\Kafka::consumer()
<x-docs.tip title="Hot tip!">
When using the `withSasl` method, the securityProtocol set in this method takes priority over `withSecurityProtocol` method.
</x-docs.tip>
```

### TLS Authentication

For using TLS authentication with Laravel Kafka you can configure your client using the following options:

```php
$consumer = \Junges\Kafka\Facades\Kafka::consumer()
->withOptions([
'ssl.ca.location' => '/some/location/kafka.crt',
'ssl.certificate.location' => '/some/location/client.crt',
'ssl.key.location' => '/some/location/client.key',
'ssl.endpoint.identification.algorithm' => 'none'
]);
```

0 comments on commit df3f4f3

Please sign in to comment.