User Tools

Site Tools


openssl

OpenSSL

Most used command

Extract ca, crt and key from .pfx

# 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