Skip to content

Commit 315f555

Browse files
committed
Adjust path for keystore
1 parent eacb4f0 commit 315f555

File tree

7 files changed

+5
-5
lines changed

7 files changed

+5
-5
lines changed

keystore.jks

-2.2 KB
Binary file not shown.

src/main/example/SSLClientExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static void main( String[] args ) throws Exception {
8383

8484
// load up the key store
8585
String STORETYPE = "JKS";
86-
String KEYSTORE = "keystore.jks";
86+
String KEYSTORE = String.format("src%1$stest%1$1sjava%1$1sorg%1$1sjava_websocket%1$1skeystore.jks", File.separator);
8787
String STOREPASSWORD = "storepassword";
8888
String KEYPASSWORD = "keypassword";
8989

src/main/example/SSLServerCustomWebsocketFactoryExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static void main(String[] args) throws Exception {
5252

5353
// load up the key store
5454
String STORETYPE = "JKS";
55-
String KEYSTORE = "keystore.jks";
55+
String KEYSTORE = String.format("src%1$stest%1$1sjava%1$1sorg%1$1sjava_websocket%1$1skeystore.jks", File.separator);
5656
String STOREPASSWORD = "storepassword";
5757
String KEYPASSWORD = "keypassword";
5858

src/main/example/SSLServerExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static void main( String[] args ) throws Exception {
4848

4949
// load up the key store
5050
String STORETYPE = "JKS";
51-
String KEYSTORE = "keystore.jks";
51+
String KEYSTORE = String.format("src%1$stest%1$1sjava%1$1sorg%1$1sjava_websocket%1$1skeystore.jks", File.separator);
5252
String STOREPASSWORD = "storepassword";
5353
String KEYPASSWORD = "keypassword";
5454

src/main/example/TwoWaySSLServerExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static void main( String[] args ) throws Exception {
5151

5252
// load up the key store
5353
String STORETYPE = "JKS";
54-
String KEYSTORE = "keystore.jks";
54+
String KEYSTORE = String.format("src%1$stest%1$1sjava%1$1sorg%1$1sjava_websocket%1$1skeystore.jks", File.separator);
5555
String STOREPASSWORD = "storepassword";
5656
String KEYPASSWORD = "keypassword";
5757

src/test/java/org/java_websocket/example/AutobahnSSLServerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public static void main( String[] args ) throws UnknownHostException {
102102
try {
103103
// load up the key store
104104
String STORETYPE = "JKS";
105-
String KEYSTORE = "keystore.jks";
105+
String KEYSTORE = String.format("src%1$stest%1$1sjava%1$1sorg%1$1sjava_websocket%1$1skeystore.jks", File.separator);
106106
String STOREPASSWORD = "storepassword";
107107
String KEYPASSWORD = "keypassword";
108108

-194 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)