User Tools

Site Tools


openssl

Differences

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

Link to this comparison view

openssl [2023/08/17 13:38] (current)
k2patel created
Line 1: Line 1:
 +====== OpenSSL ======
  
 +==== Most used command ====
 +=== Extract ca, crt and key from .pfx ===
 +<code bash>
 +# Extract CA
 +openssl pkcs12 -in ${cert}.pfx -nodes -nokeys -cacerts -out ${cert}-ca.crt
 +# Extract Key
 +openssl pkcs12 -in ${cert}.pfx -nocerts -out ${cert}.key
 +# Extract Cert
 +openssl pkcs12 -in ${cert}.pfx -clcerts -nokeys -out ${cert}.crt
 +# Remove Password
 +openssl rsa -in ${cert}.key -out ${cert}.key
 +# Generate Bundle
 +cat  ${cert}.crt ${cert}-ca.crt > ${cert}-bundle.crt
 +</​code>​
openssl.txt ยท Last modified: 2023/08/17 13:38 by k2patel