Skip to content

Commit

Permalink
ALPN
Browse files Browse the repository at this point in the history
  • Loading branch information
JinhangZhang committed May 15, 2024
1 parent 5b9b605 commit 79e404d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/

import java.security.Security;
import java.security.Provider;

Expand Down
8 changes: 6 additions & 2 deletions test/jdk/javax/net/ssl/templates/SSLContextTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,12 @@ protected TrustManager createTrustManager(Cert[] trustedCerts,
ContextParameters params) throws Exception {
CertificateFactory cf = CertificateFactory.getInstance("X.509");
ByteArrayInputStream is;

KeyStore ts = KeyStore.getInstance("JKS");
KeyStore ts;
if (!BaseUtils.isFIPS()) {
ts = KeyStore.getInstance("JKS");
} else {
ts = KeyStore.getInstance("PKCS12");
}
ts.load(null, null);

if (trustedCerts != null && trustedCerts.length != 0) {
Expand Down

0 comments on commit 79e404d

Please sign in to comment.