You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
451 B
Plaintext

# show cert info
`openssl x509 -noout -text -in cert.pem`
# import pkcs12 into jks
`keytool -importkeystore -srckeystore mypfxfile.pfx -srcstoretype pkcs12 -destkeystore clientcert.jks -deststoretype JKS`
# pkcs12/pfx to pem/crt + key
## export key
`openssl pkcs12 -in filename.pfx -nocerts -out key.pem`
## remove passphrase
`openssl rsa -in key.pem -out server.key`
## export cert
`openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem`