Difference between revisions of "PKCS12"
Jump to navigation
Jump to search
(10 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
Extensions: <code>[[.p12]]</code> or <code>[[.pfx]]</code> | Extensions: <code>[[.p12]]</code> or <code>[[.pfx]]</code> | ||
+ | |||
+ | |||
+ | 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 == | ||
+ | * [[The specified keychain could not be found.]] | ||
== Related terms == | == Related terms == | ||
* [[PKCS8]]: [[.p8]] | * [[PKCS8]]: [[.p8]] | ||
− | + | * <code>[[openssl pkcs12]]</code> | |
+ | * <code>[[.cer]]</code> | ||
+ | * [[Replace .p12 certificate]] | ||
+ | * [[Keychain]] | ||
== See also == | == See also == |
Latest revision as of 16:28, 16 August 2023
It is normally used to store just one private key and its associated certificate chain.
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[edit]
Related terms[edit]
See also[edit]
Advertising: