Skip to content

Commit

Permalink
Update SSL settings for Java 11-based build #1062
Browse files Browse the repository at this point in the history
  • Loading branch information
mp911de committed Jun 15, 2019
1 parent 0b6d6d8 commit ef7fd86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/bash/create_certificates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,5 @@ openssl pkcs12 -export -clcerts \
${KEYTOOL} -importcert -keystore ${TRUSTSTORE_FILE} -file ${CA_DIR}/certs/ca.cert.pem -noprompt -storepass changeit
${KEYTOOL} -importkeystore \
-srckeystore ${CA_DIR}/client.p12 -srcstoretype PKCS12 -srcstorepass changeit\
-destkeystore ${KEYSTORE_FILE} -deststoretype JKS \
-destkeystore ${KEYSTORE_FILE} -deststoretype PKCS12 \
-noprompt -storepass changeit
4 changes: 2 additions & 2 deletions src/test/java/io/lettuce/core/SslIntegrationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.security.cert.CertificateException;
import java.security.GeneralSecurityException;
import java.time.Duration;
import java.util.Arrays;
import java.util.List;
Expand Down Expand Up @@ -391,7 +391,7 @@ void pubSubSslAndBreakConnection() {
RedisFuture<Void> defectFuture = connection.subscribe("foo");

assertThatThrownBy(() -> Futures.await(defectFuture)).hasCauseInstanceOf(DecoderException.class)
.hasRootCauseInstanceOf(CertificateException.class);
.hasRootCauseInstanceOf(GeneralSecurityException.class);

assertThat(defectFuture.toCompletableFuture()).isDone();

Expand Down

0 comments on commit ef7fd86

Please sign in to comment.