User Tools

Site Tools


info:cryptography:openssl:convert_key
Please note, that this is an old archived version of this site. Check out the new version at andunix.net!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
info:cryptography:openssl:convert_key [2014-12-18 15:37]
andunix created
info:cryptography:openssl:convert_key [2015-05-06 09:21]
andunix
Line 7: Line 7:
 You can add ''-deststorepass PASSWORD'' to set the password on the command line. You can add ''-deststorepass PASSWORD'' to set the password on the command line.
 If you don't, keytool will ask you for a password. If you don't, keytool will ask you for a password.
 +
 +===== Export Certificate from P12 =====
 +
 +Export the certificate with the complete certificate chain:
 +  openssl pkcs12 -in testkey.p12 -out testkey.pem -nokeys
 +
 +Export the certificate only:
 +  openssl pkcs12 -in testkey.p12 -out testkey.pem -nokeys -clcerts
  
 {{tag>openssl security cryptography key howto}} {{tag>openssl security cryptography key howto}}
info/cryptography/openssl/convert_key.txt · Last modified: 2019-01-17 19:19 by andunix