Skip to content

Commit 64b7574

Browse files
authored
Merge pull request TooTallNate#757 from BasisHub/master
-keyalg RSA is needed or you'll get SSLHandshakeException: no cipher …
2 parents fa3909c + 247d2b2 commit 64b7574

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/example/SSLClientExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public class SSLClientExample {
7777
/*
7878
* Keystore with certificate created like so (in JKS format):
7979
*
80-
*keytool -genkey -validity 3650 -keystore "keystore.jks" -storepass "storepassword" -keypass "keypassword" -alias "default" -dname "CN=127.0.0.1, OU=MyOrgUnit, O=MyOrg, L=MyCity, S=MyRegion, C=MyCountry"
80+
*keytool -genkey -keyalg RSA -validity 3650 -keystore "keystore.jks" -storepass "storepassword" -keypass "keypassword" -alias "default" -dname "CN=127.0.0.1, OU=MyOrgUnit, O=MyOrg, L=MyCity, S=MyRegion, C=MyCountry"
8181
*/
8282
public static void main( String[] args ) throws Exception {
8383
WebSocketChatClient chatclient = new WebSocketChatClient( new URI( "wss://localhost:8887" ) );

src/main/example/SSLServerExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class SSLServerExample {
4141
/*
4242
* Keystore with certificate created like so (in JKS format):
4343
*
44-
*keytool -genkey -validity 3650 -keystore "keystore.jks" -storepass "storepassword" -keypass "keypassword" -alias "default" -dname "CN=127.0.0.1, OU=MyOrgUnit, O=MyOrg, L=MyCity, S=MyRegion, C=MyCountry"
44+
*keytool -genkey -keyalg RSA -validity 3650 -keystore "keystore.jks" -storepass "storepassword" -keypass "keypassword" -alias "default" -dname "CN=127.0.0.1, OU=MyOrgUnit, O=MyOrg, L=MyCity, S=MyRegion, C=MyCountry"
4545
*/
4646
public static void main( String[] args ) throws Exception {
4747
ChatServer chatserver = new ChatServer( 8887 ); // Firefox does allow multible ssl connection only via port 443 //tested on FF16

0 commit comments

Comments
 (0)