mailiverse/keys/key/make

4 lines
255 B
Plaintext
Raw Normal View History

keytool -genkeypair -alias piratekey -keyalg RSA -keysize 2048 -keystore keystore.jks
keytool -export -alias piratekey -keystore keystore.jks -rfc -file selfsignedcert.cer
keytool -import -alias piratekey -file selfsignedcert.cer -keystore truststore.jks