Create a keystore with a self-signed certificate, using the keytool command
keytool -keystore mySrvKeystore -keypasswd 123456 -genkey -keyalg RSA -alias mycert