diff --git a/src/main/scala/org/zalando/react/nakadi/client/providers/HttpClientProvider.scala b/src/main/scala/org/zalando/react/nakadi/client/providers/HttpClientProvider.scala index cf2fae2..0226c8c 100644 --- a/src/main/scala/org/zalando/react/nakadi/client/providers/HttpClientProvider.scala +++ b/src/main/scala/org/zalando/react/nakadi/client/providers/HttpClientProvider.scala @@ -34,7 +34,7 @@ class HttpClientProvider(actorContext: ActorContext, isConnectionSSL match { case true => - val sslContext = if (acceptAnyCertificate) SSLContext.getDefault else { + val sslContext = if (!acceptAnyCertificate) SSLContext.getDefault else { val permissiveTrustManager: TrustManager = new X509TrustManager() { override def checkClientTrusted(chain: Array[X509Certificate], authType: String): Unit = {}