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 b75d30a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
* questions.
*/

package javax.net.ssl;

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

Expand Down
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 javax.net.ssl.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

0 comments on commit b75d30a

Please sign in to comment.