@@ -101,7 +101,7 @@ private void createKeystoreWithCert(File file, String alias, Map<String, X509Cer
101101 CertificateBuilder certificateBuilder = new CertificateBuilder (30 , "SHA1withRSA" );
102102 X509Certificate cCert = certificateBuilder .sanDnsName ("localhost" )
103103 .generate ("CN=mymachine.local, O=A client" , keypair );
104- TestSslUtils .createKeyStore (file .getPath (), new Password (SSL_PASSWORD ), alias , keypair .getPrivate (), cCert );
104+ TestSslUtils .createKeyStore (file .getPath (), new Password (SSL_PASSWORD ), new Password ( SSL_PASSWORD ), alias , keypair .getPrivate (), cCert );
105105 certs .put (alias , cCert );
106106 }
107107
@@ -125,7 +125,7 @@ private void createWrongKeystoreWithCert(File file, String alias, Map<String, X5
125125 CertificateBuilder certificateBuilder = new CertificateBuilder (30 , "SHA1withRSA" );
126126 X509Certificate cCert = certificateBuilder .sanDnsName ("fail" )
127127 .generate ("CN=mymachine.local, O=A client" , keypair );
128- TestSslUtils .createKeyStore (file .getPath (), new Password (SSL_PASSWORD ), alias , keypair .getPrivate (), cCert );
128+ TestSslUtils .createKeyStore (file .getPath (), new Password (SSL_PASSWORD ), new Password ( SSL_PASSWORD ), alias , keypair .getPrivate (), cCert );
129129 certs .put (alias , cCert );
130130 }
131131
0 commit comments