Difference between revisions of "Openssl pkcs12"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
https://www.openssl.org/docs/manmaster/man1/openssl-pkcs12.html
 
https://www.openssl.org/docs/manmaster/man1/openssl-pkcs12.html
  
  openssl [[pkcs12]] -info -in INFILE[[.p12]] -nodes
+
  [[openssl]] [[pkcs12]] -info -in INFILE[[.p12]] -nodes
 
  openssl pkcs12 -info -in INFILE.p12
 
  openssl pkcs12 -info -in INFILE.p12
  
Line 12: Line 12:
  
 
Generate .p12 from .pem
 
Generate .p12 from .pem
  [[openssl pkcs12]] -export -out keyStore.p12 -inkey myKey[[.pem]] -in certs[[.pem]]
+
  [[openssl pkcs12]] -export -out keyStore.p12 -inkey myPrivateKey[[.pem]] -in certs[[.pem]]
  
 
== Related commands ==
 
== Related commands ==

Latest revision as of 16:25, 16 August 2023

https://www.openssl.org/docs/manmaster/man1/openssl-pkcs12.html

openssl pkcs12 -info -in INFILE.p12 -nodes
openssl pkcs12 -info -in INFILE.p12

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

Related commands[edit]

See also[edit]

Advertising: