mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8357253: Test test/jdk/sun/security/ssl/SSLSessionImpl/ResumeClientTLS12withSNI.java writes in src dir
Backport-of: 566e3b21ed
This commit is contained in:
committed by
Vitaly Provodin
parent
341f527343
commit
c526611a14
@@ -65,16 +65,10 @@ public class ResumeClientTLS12withSNI {
|
||||
/*
|
||||
* The following is to set up the keystores.
|
||||
*/
|
||||
private static final String pathToStores = System.getProperty("test.src", ".");
|
||||
private static final String keyStoreFile = "ks_san.p12";
|
||||
private static final String trustStoreFile = "ks_san.p12";
|
||||
private static final String keyFilename = "ks_san.p12";
|
||||
private static final String trustFilename = "ks_san.p12";
|
||||
private static final char[] passphrase = "123456".toCharArray();
|
||||
|
||||
private static final String keyFilename =
|
||||
pathToStores + "/" + keyStoreFile;
|
||||
private static final String trustFilename =
|
||||
pathToStores + "/" + trustStoreFile;
|
||||
|
||||
private static final String HOST_NAME = "arf.yak.foo.localhost123456.localhost123456.localhost123456.localhost123456.localhost123456.localhost123456."
|
||||
+ "localhost123456.localhost123456.localhost123456.localhost123456.localhost123456.localhost123456";
|
||||
private static final SNIMatcher SNI_MATCHER = SNIHostName.createSNIMatcher("arf\\.yak\\.foo.*");
|
||||
@@ -118,7 +112,7 @@ public class ResumeClientTLS12withSNI {
|
||||
private static KeyManagerFactory makeKeyManagerFactory(String ksPath,
|
||||
char[] pass) throws GeneralSecurityException, IOException {
|
||||
KeyManagerFactory kmf;
|
||||
KeyStore ks = KeyStore.getInstance("JKS");
|
||||
KeyStore ks = KeyStore.getInstance("PKCS12");
|
||||
|
||||
try (FileInputStream fsIn = new FileInputStream(ksPath)) {
|
||||
ks.load(fsIn, pass);
|
||||
|
||||
Reference in New Issue
Block a user