Skip to content

Commit

Permalink
ALPN
Browse files Browse the repository at this point in the history
  • Loading branch information
JinhangZhang committed May 14, 2024
1 parent 5b9b605 commit 4180d32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
File renamed without changes.
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 4180d32

Please sign in to comment.