[[linux_wiki:openssl]]

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:openssl [2018/02/23 03:56]
billdozor [Generate Self-Signed from Existing Private Key and CSR]
linux_wiki:openssl [2019/05/26 03:50] (current)
Line 84: Line 84:
  
 Converting certificates from one type to another. Converting certificates from one type to another.
 +
 +\\
 +===== Extract Cert, Key, CA from PFX =====
 +  * Extract Key<code bash>​openssl pkcs12 -in mycertpack.pfx -nocerts -nodes | sed -ne '/​-BEGIN PRIVATE KEY-/,/-END PRIVATE KEY-/​p'​ > mykey.key</​code>​
 +  * Extract Certificate<​code bash>​openssl pkcs12 -in mycertpack.pfx -clcerts -nokeys | sed -ne '/​-BEGIN CERTIFICATE-/,/​-END CERTIFICATE-/​p'​ > mycert.crt</​code>​
 +  * Extract Certificate Authority<​code bash>​openssl pkcs12 -in mycertpack.pfx -cacerts -nokeys -chain | sed -ne '/​-BEGIN CERTIFICATE-/,/​-END CERTIFICATE-/​p'​ > myCA.crt</​code>​
  
 \\ \\
  • linux_wiki/openssl.txt
  • Last modified: 2019/05/26 03:50
  • (external edit)