Update ssl demo app
This commit is contained in:
@@ -316,6 +316,8 @@ You should be able to connect to Kafka broker for both producer and consumer suc
|
||||
|
||||
Build this application.
|
||||
|
||||
Before building, move the certificate files to `src/main/resources` folder so that they are available on the classpath.
|
||||
|
||||
```
|
||||
./mvnw clean package
|
||||
```
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-stream-binder-kafka</artifactId>
|
||||
<version>3.0.10.RELEASE</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.kafka</groupId>
|
||||
|
||||
@@ -6,9 +6,9 @@ spring.cloud.stream:
|
||||
brokers: localhost:9093
|
||||
configuration:
|
||||
security.protocol: SSL
|
||||
ssl.truststore.location: /tmp/kafka-ssl-demo/client.truststore
|
||||
ssl.truststore.location: classpath:client.truststore
|
||||
ssl.truststore.password: 123456
|
||||
ssl.keystore.location: /tmp/kafka-ssl-demo/ssldemo.keystore
|
||||
ssl.keystore.location: classpath:ssldemo.keystore
|
||||
ssl.keystore.password: 123456
|
||||
ssl.key.password: 123456
|
||||
ssl.enabled.protocols: TLSv1.2,TLSv1.1,TLSv1
|
||||
|
||||
Reference in New Issue
Block a user