Skip to content

Commit

Permalink
remove a bunch of deprecated stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rbri committed Aug 11, 2024
1 parent eaa11cf commit 0792332
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public void insecureSSL_clientCertificates_fail() throws Exception {
@Test
public void insecureSSL_clientCertificates() throws Exception {
final WebClient webClient = getWebClient();
webClient.getOptions().setSSLClientCertificate(getClass().getClassLoader().getResource("insecureSSL.pfx"),
webClient.getOptions().setSSLClientCertificateKeyStore(
getClass().getClassLoader().getResource("insecureSSL.pfx"),
"nopassword", "PKCS12");
webClient.getOptions().setUseInsecureSSL(true);

Expand Down Expand Up @@ -89,7 +90,7 @@ public void insecureSSL_clientCertificatesInputStream() throws Exception {
certificateInputStream.read(certificateBytes);

try (InputStream is = new ByteArrayInputStream(certificateBytes)) {
webClient.getOptions().setSSLClientCertificate(is, "nopassword", "PKCS12");
webClient.getOptions().setSSLClientCertificateKeyStore(is, "nopassword", "PKCS12");
webClient.getOptions().setUseInsecureSSL(true);

final URL https = new URL("https://localhost:" + PORT2 + "/");
Expand Down

0 comments on commit 0792332

Please sign in to comment.