Browse Source

kafka ssl uat

wwd 3 years ago
parent
commit
14b2e1d4cd

BIN
config/uatclient.keystore.jks


BIN
config/uatclient.truststore.jks


+ 8 - 8
src/main/java/com/persagy/ztkencryptdecodedata/kafka/CloudKafkaConsumerFromEdgeTopic.java

@@ -106,14 +106,14 @@ public class CloudKafkaConsumerFromEdgeTopic implements CommandLineRunner {
         if ("dev".equals(active)){
 
         }else{
-//            props.put("security.protocol", securtyprotocol);
-//            props.put("ssl.endpoint.identification.algorithm",algorithm);
-//            props.put(SslConfigs.SSL_KEYSTORE_LOCATION_CONFIG,  new File(keystorelocaltion).getAbsolutePath());
-//            props.put(SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFIG, new File(truststorelocaltion).getAbsolutePath());
-//            props.put(SslConfigs.SSL_KEYSTORE_PASSWORD_CONFIG,keystorepassword);
-//            props.put(SslConfigs.SSL_KEY_PASSWORD_CONFIG,keypassword);
-//
-//            props.put(SslConfigs.SSL_TRUSTSTORE_PASSWORD_CONFIG,truststorepassword);
+            props.put("security.protocol", securtyprotocol);
+            props.put("ssl.endpoint.identification.algorithm",algorithm);
+            props.put(SslConfigs.SSL_KEYSTORE_LOCATION_CONFIG,  new File(keystorelocaltion).getAbsolutePath());
+            props.put(SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFIG, new File(truststorelocaltion).getAbsolutePath());
+            props.put(SslConfigs.SSL_KEYSTORE_PASSWORD_CONFIG,keystorepassword);
+            props.put(SslConfigs.SSL_KEY_PASSWORD_CONFIG,keypassword);
+
+            props.put(SslConfigs.SSL_TRUSTSTORE_PASSWORD_CONFIG,truststorepassword);
         }
 
 

File diff suppressed because it is too large
+ 1 - 1
src/main/resources/application-uat.yml