Guest User

Untitled

a guest
Jun 24th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. # use 'secret' as key password (hardcoded in java)
  2. openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem
  3. openssl pkcs12 -export -out certkey.p12 -in certificate.pem -inkey key.pem
  4. 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