@@ -65,16 +65,10 @@ public class ResumeClientTLS12withSNI {
65
65
/*
66
66
* The following is to set up the keystores.
67
67
*/
68
- private static final String pathToStores = System .getProperty ("test.src" , "." );
69
- private static final String keyStoreFile = "ks_san.p12" ;
70
- private static final String trustStoreFile = "ks_san.p12" ;
68
+ private static final String keyFilename = "ks_san.p12" ;
69
+ private static final String trustFilename = "ks_san.p12" ;
71
70
private static final char [] passphrase = "123456" .toCharArray ();
72
71
73
- private static final String keyFilename =
74
- pathToStores + "/" + keyStoreFile ;
75
- private static final String trustFilename =
76
- pathToStores + "/" + trustStoreFile ;
77
-
78
72
private static final String HOST_NAME = "arf.yak.foo.localhost123456.localhost123456.localhost123456.localhost123456.localhost123456.localhost123456."
79
73
+ "localhost123456.localhost123456.localhost123456.localhost123456.localhost123456.localhost123456" ;
80
74
private static final SNIMatcher SNI_MATCHER = SNIHostName .createSNIMatcher ("arf\\ .yak\\ .foo.*" );
@@ -118,7 +112,7 @@ public ResumeClientTLS12withSNI(final String sslProtocol) throws Exception {
118
112
private static KeyManagerFactory makeKeyManagerFactory (String ksPath ,
119
113
char [] pass ) throws GeneralSecurityException , IOException {
120
114
KeyManagerFactory kmf ;
121
- KeyStore ks = KeyStore .getInstance ("JKS " );
115
+ KeyStore ks = KeyStore .getInstance ("PKCS12 " );
122
116
123
117
try (FileInputStream fsIn = new FileInputStream (ksPath )) {
124
118
ks .load (fsIn , pass );
0 commit comments