Differences between revisions 12 and 13
Revision 12 as of 2019-03-18 22:27:39
Size: 1500
Editor: PieterSmit
Comment:
Revision 13 as of 2019-08-25 22:43:00
Size: 1574
Editor: PieterSmit
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
 * [[OpenSslSelfSignedCertificate| openssl self signed certificate with ]]

SSL + TLS + OPENssl

Java keytool

  • List keys
    •        keytool -list -v -keystore store.jks
  • Export java jks to p12
    •       keytool -importkeystore -srckeystore keystore.jks -destkeystore keystore.p12
      -deststoretype PKCS12 -srcalias <jkskeyalias> -deststorepass <password>
      -destkeypass <password>

openssl export only key or cert

  • Export certificate using openssl:
    •       openssl pkcs12 -in keystore.p12  -nokeys -out cert.pem
  • Export unencrypted private key:
    •       openssl pkcs12 -in keystore.p12  -nodes -nocerts -out key.pem

...


CategorySecurity

Security/ssl (last edited 2022-11-27 22:35:40 by PieterSmit)