openssl
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | openssl [2023/08/17 13:38] (current) – created k2patel | ||
|---|---|---|---|
| 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 | ||
| + | </ | ||
openssl.txt · Last modified: 2023/08/17 13:38 by k2patel
