From 0792332449f0dd80492b803ff83cbc83d05b7145 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Sun, 11 Aug 2024 11:15:58 +0200 Subject: [PATCH] remove a bunch of deprecated stuff --- ...ttpWebConnectionInsecureSSLWithClientCertificateTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/htmlunit/HttpWebConnectionInsecureSSLWithClientCertificateTest.java b/src/test/java/org/htmlunit/HttpWebConnectionInsecureSSLWithClientCertificateTest.java index 4ba544fa009..197fa70a0f4 100644 --- a/src/test/java/org/htmlunit/HttpWebConnectionInsecureSSLWithClientCertificateTest.java +++ b/src/test/java/org/htmlunit/HttpWebConnectionInsecureSSLWithClientCertificateTest.java @@ -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); @@ -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 + "/");