Skip to content

Commit

Permalink
Merge pull request TooTallNate#757 from BasisHub/master
Browse files Browse the repository at this point in the history
-keyalg RSA is needed or you'll get SSLHandshakeException: no cipher …
  • Loading branch information
marci4 authored Aug 15, 2018
2 parents fa3909c + 247d2b2 commit 64b7574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/example/SSLClientExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class SSLClientExample {
/*
* Keystore with certificate created like so (in JKS format):
*
*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"
*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"
*/
public static void main( String[] args ) throws Exception {
WebSocketChatClient chatclient = new WebSocketChatClient( new URI( "wss://localhost:8887" ) );
Expand Down
2 changes: 1 addition & 1 deletion src/main/example/SSLServerExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class SSLServerExample {
/*
* Keystore with certificate created like so (in JKS format):
*
*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"
*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"
*/
public static void main( String[] args ) throws Exception {
ChatServer chatserver = new ChatServer( 8887 ); // Firefox does allow multible ssl connection only via port 443 //tested on FF16
Expand Down

0 comments on commit 64b7574

Please sign in to comment.