Skip to content

Commit

Permalink
Updated paho to 1.2.5 to fix CVE-2019-11777 (fixed in Pago 1.2.1) (#550)
Browse files Browse the repository at this point in the history
  • Loading branch information
andsel authored Nov 13, 2020
1 parent aa332d0 commit 1d38a1b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion broker/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<bintray.package>io.moquette.moquette-broker</bintray.package>
<netty.version>4.1.53.Final</netty.version>
<netty.tcnative.version>2.0.34.Final</netty.tcnative.version>
<paho.version>1.2.0</paho.version>
<paho.version>1.2.5</paho.version>
<h2.version>1.4.199</h2.version>
</properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,17 @@
/**
* Check that Moquette could also handle SSL with client authentication.
*
* This test verifies client's autentication on server, so the server certificate has to be imported into the
* This test verifies client's authentication on server, so the server certificate has to be imported into the
* client's keystore and the client's certificate must be imported into server's keystore.
*
* the first way is done by:
* <pre>
* 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
* </pre>
* and
* <pre>
* 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
* </pre>
*
* to create the key in the client side:
Expand All @@ -72,7 +73,8 @@
*
* to import the client's certificate into server:
* <pre>
* 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
* </pre>
*
* To verify that a client's certficate not imported into server, it's necessary to create a client's key:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
*
* Command executed to create the key on server's keystore:
* <pre>
* 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
* </pre>
*
* Command executed to export the certificate from the server's keystore and import directly in client's keystore:
Expand Down
Binary file modified broker/src/test/resources/clientkeystore.jks
Binary file not shown.
Binary file modified broker/src/test/resources/serverkeystore.jks
Binary file not shown.
Binary file modified broker/src/test/resources/signedclientkeystore.jks
Binary file not shown.
Binary file modified broker/src/test/resources/unsignedclientkeystore.jks
Binary file not shown.

0 comments on commit 1d38a1b

Please sign in to comment.