@@ -65,16 +65,10 @@ public class ResumeClientTLS12withSNI {
6565 /*
6666 * The following is to set up the keystores.
6767 */
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" ;
7170 private static final char [] passphrase = "123456" .toCharArray ();
7271
73- private static final String keyFilename =
74- pathToStores + "/" + keyStoreFile ;
75- private static final String trustFilename =
76- pathToStores + "/" + trustStoreFile ;
77-
7872 private static final String HOST_NAME = "arf.yak.foo.localhost123456.localhost123456.localhost123456.localhost123456.localhost123456.localhost123456."
7973 + "localhost123456.localhost123456.localhost123456.localhost123456.localhost123456.localhost123456" ;
8074 private static final SNIMatcher SNI_MATCHER = SNIHostName .createSNIMatcher ("arf\\ .yak\\ .foo.*" );
@@ -118,7 +112,7 @@ public ResumeClientTLS12withSNI(final String sslProtocol) throws Exception {
118112 private static KeyManagerFactory makeKeyManagerFactory (String ksPath ,
119113 char [] pass ) throws GeneralSecurityException , IOException {
120114 KeyManagerFactory kmf ;
121- KeyStore ks = KeyStore .getInstance ("JKS " );
115+ KeyStore ks = KeyStore .getInstance ("PKCS12 " );
122116
123117 try (FileInputStream fsIn = new FileInputStream (ksPath )) {
124118 ks .load (fsIn , pass );
0 commit comments