Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # use 'secret' as key password (hardcoded in java)
- openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem
- openssl pkcs12 -export -out certkey.p12 -in certificate.pem -inkey key.pem
- keytool -importkeystore -srckeystore certkey.p12 -srcstoretype pkcs12 -srcalias 1 -destkeystore keystore.jks -deststoretype jks -deststorepass secret -destalias server
Add Comment
Please, Sign In to add comment