diff --git a/broker/pom.xml b/broker/pom.xml
index 353f522a4..4e309c8e1 100644
--- a/broker/pom.xml
+++ b/broker/pom.xml
@@ -17,7 +17,7 @@
- * keytool -genkeypair -alias testserver -keyalg RSA -validity 3650 -keysize 2048 -dname cn=moquette.io -keystore serverkeystore.jks -keypass passw0rdsrv -storepass passw0rdsrv + * keytool -genkeypair -alias testserver -keyalg RSA -validity 3650 -keysize 2048 -dname cn=localhost -keystore serverkeystore.jks -keypass passw0rdsrv -storepass passw0rdsrv ** and *
- * keytool -exportcert -alias testserver -keystore serverkeystore.jks -keypass passw0rdsrv -storepass passw0rdsrv | keytool -importcert -trustcacerts -noprompt -alias testserver -keystore signedclientkeystore.jks -keypass passw0rd -storepass passw0rd + * keytool -exportcert -alias testserver -keystore serverkeystore.jks -keypass passw0rdsrv -storepass passw0rdsrv | \ + * keytool -importcert -trustcacerts -noprompt -alias testserver -keystore signedclientkeystore.jks -keypass passw0rd -storepass passw0rd ** * to create the key in the client side: @@ -72,7 +73,8 @@ * * to import the client's certificate into server: *
- * keytool -exportcert -alias signedtestclient -keystore signedclientkeystore.jks -keypass passw0rd -storepass passw0rd | keytool -importcert -trustcacerts -noprompt -alias signedtestclient -keystore serverkeystore.jks -keypass passw0rdsrv -storepass passw0rdsrv + * keytool -exportcert -alias signedtestclient -keystore signedclientkeystore.jks -keypass passw0rd -storepass passw0rd | \ + * keytool -importcert -trustcacerts -noprompt -alias signedtestclient -keystore serverkeystore.jks -keypass passw0rdsrv -storepass passw0rdsrv ** * To verify that a client's certficate not imported into server, it's necessary to create a client's key: diff --git a/broker/src/test/java/io/moquette/integration/ServerIntegrationSSLTest.java b/broker/src/test/java/io/moquette/integration/ServerIntegrationSSLTest.java index a997339bc..c568e9926 100644 --- a/broker/src/test/java/io/moquette/integration/ServerIntegrationSSLTest.java +++ b/broker/src/test/java/io/moquette/integration/ServerIntegrationSSLTest.java @@ -62,7 +62,7 @@ * * Command executed to create the key on server's keystore: *
- * keytool -genkeypair -alias testserver -keyalg RSA -validity 3650 -keysize 2048 -dname cn=moquette.io -keystore serverkeystore.jks -keypass passw0rdsrv -storepass passw0rdsrv + * keytool -genkeypair -alias testserver -keyalg RSA -validity 3650 -keysize 2048 -dname cn=localhost -keystore serverkeystore.jks -keypass passw0rdsrv -storepass passw0rdsrv ** * Command executed to export the certificate from the server's keystore and import directly in client's keystore: diff --git a/broker/src/test/resources/clientkeystore.jks b/broker/src/test/resources/clientkeystore.jks index 1fd1449fb..c7d51a2aa 100644 Binary files a/broker/src/test/resources/clientkeystore.jks and b/broker/src/test/resources/clientkeystore.jks differ diff --git a/broker/src/test/resources/serverkeystore.jks b/broker/src/test/resources/serverkeystore.jks index e18ef4343..60f33f0a4 100644 Binary files a/broker/src/test/resources/serverkeystore.jks and b/broker/src/test/resources/serverkeystore.jks differ diff --git a/broker/src/test/resources/signedclientkeystore.jks b/broker/src/test/resources/signedclientkeystore.jks index 5db33a489..7f5588533 100644 Binary files a/broker/src/test/resources/signedclientkeystore.jks and b/broker/src/test/resources/signedclientkeystore.jks differ diff --git a/broker/src/test/resources/unsignedclientkeystore.jks b/broker/src/test/resources/unsignedclientkeystore.jks index d18c91d57..b810f23d9 100644 Binary files a/broker/src/test/resources/unsignedclientkeystore.jks and b/broker/src/test/resources/unsignedclientkeystore.jks differ