KEYCLOAK-3351 TrustStoreEmailTest fix for ibmjdk
This commit is contained in:
parent
2df7d6252e
commit
de888fc8a1
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ public class SslMailServer {
|
||||||
ksKeys.load(keyStoreIS, keyStorePassphrase);
|
ksKeys.load(keyStoreIS, keyStorePassphrase);
|
||||||
|
|
||||||
// KeyManager decides which key material to use.
|
// KeyManager decides which key material to use.
|
||||||
KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
|
KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
|
||||||
kmf.init(ksKeys, keyStorePassphrase);
|
kmf.init(ksKeys, keyStorePassphrase);
|
||||||
|
|
||||||
// Trust store for client authentication.
|
// Trust store for client authentication.
|
||||||
|
@ -101,7 +101,7 @@ public class SslMailServer {
|
||||||
ksTrust.load(trustStoreIS, trustStorePassphrase);
|
ksTrust.load(trustStoreIS, trustStorePassphrase);
|
||||||
|
|
||||||
// TrustManager decides which certificate authorities to use.
|
// TrustManager decides which certificate authorities to use.
|
||||||
TrustManagerFactory tmf = TrustManagerFactory.getInstance("SunX509");
|
TrustManagerFactory tmf = TrustManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
|
||||||
tmf.init(ksTrust);
|
tmf.init(ksTrust);
|
||||||
|
|
||||||
final SSLContext sslContext = SSLContext.getInstance("TLS");
|
final SSLContext sslContext = SSLContext.getInstance("TLS");
|
||||||
|
|
Loading…
Reference in a new issue