Update ssl demo app

This commit is contained in:
Soby Chacko
2020-11-23 10:54:07 -05:00
parent e20a22452d
commit e749b8de7f
3 changed files with 5 additions and 2 deletions

View File

@@ -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
```

View File

@@ -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>

View File

@@ -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