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 9c975e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/jdk/javax/net/ssl/templates/SSLContextTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
import java.util.Base64;
import javax.net.ssl.*;

import utils.BaseUtils;

/**
* SSLContext template to speed up JSSE tests.
*/
Expand Down Expand Up @@ -111,8 +113,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
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
* questions.
*/

package utils;

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

Expand Down

0 comments on commit 9c975e8

Please sign in to comment.