The test certificates have been generated with the following commands:
$ keytool -genkeypair -alias certificatekey -keyalg RSA -validity 3650 -keystore keystore.jks
$ keytool -export -alias certificatekey -keystore keystore.jks -rfc -file cert.cer
$ keytool -import -alias certificatekey -file cert.cer -keystore truststore.jks