Skip to content

Commit

Permalink
added SSL_ENDPOINT_IDENTIFICATION_ALGORITHM_CONFIG to skip hostname v…
Browse files Browse the repository at this point in the history
…erification check with self signed certs

Signed-off-by: Kalin Kostashki <kalin.kostashki@bosch.io>
  • Loading branch information
Kalin Kostashki authored and thjaeckle committed Sep 6, 2022
1 parent b856c20 commit 4558141
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -124,7 +124,8 @@ ProducerSettings<String, ByteBuffer> getProducerSettings() {
private Map<String, String> getTrustedSelfSignedCertificates() {
if (connection.isValidateCertificates() && connection.getTrustedCertificates().isPresent()) {
return Map.of(SslConfigs.SSL_TRUSTSTORE_TYPE_CONFIG, "PEM",
SslConfigs.SSL_TRUSTSTORE_CERTIFICATES_CONFIG, connection.getTrustedCertificates().orElse(""));
SslConfigs.SSL_TRUSTSTORE_CERTIFICATES_CONFIG, connection.getTrustedCertificates().orElse(""),
SslConfigs.SSL_ENDPOINT_IDENTIFICATION_ALGORITHM_CONFIG, "");
}
return Map.of();
}
Expand Down

0 comments on commit 4558141

Please sign in to comment.