Difference between revisions of "PKCS12"

From wikieduonline
Jump to navigation Jump to search
Line 21: Line 21:
 
  file your_p12_file.p12
 
  file your_p12_file.p12
 
  your_p12_file.p12: data
 
  your_p12_file.p12: data
 +
 +
== Errors ==
 +
* [[The specified keychain could not be found.]]
  
 
== Related terms ==
 
== Related terms ==
Line 27: Line 30:
 
* <code>[[.cer]]</code>
 
* <code>[[.cer]]</code>
 
* [[Replace .p12 certificate]]
 
* [[Replace .p12 certificate]]
* [[The specified keychain could not be found.]]
 
  
 
== See also ==
 
== See also ==

Revision as of 16:25, 16 August 2023

It is normally used to store just one private key and its associated certificate chain.

Extensions: .p12 or .pfx


Show certs:

openssl pkcs12 -info -in INFILE.p12 -nokeys

Show private key:

openssl pkcs12 -info -in INFILE.p12 -nocerts

Generate .p12 from .pem

openssl pkcs12 -export -out keyStore.p12 -inkey myPrivateKey.pem -in certs.pem
openssl pkcs12 -export -out keyStore.p12 -inkey myPrivateKey[[.pem] -in certs[[.pem]
Enter pass phrase for myPrivateKey[[.pem]:
Enter Export Password:
Verifying - Enter Export Password:


file your_p12_file.p12
your_p12_file.p12: data

Errors

Related terms

See also

Advertising: