linux:webserver:openssl:pkcs12_to_pem
This is an old revision of the document!
Table of Contents
pkcs12 zu pem
PKCS12 das auch mit PW geschützt ist soll danach ein PEM sein ohne PW
Export vom Cert
openssl pkcs12 -clcerts -nokeys -in "YourPKCSFile" -out certificate.crt -password pass:PASSWORD -passin pass:PASSWORD
Export vom CA Cert
openssl pkcs12 -cacerts -nokeys -in "YourPKCSFile" -out ca-cert.ca -password pass:PASSWORD -passin pass:PASSWORD
Export vom Priv Key
openssl pkcs12 -nocerts -in "YourPKCSFile" -out private.key -password pass:PASSWORD -passin pass:PASSWORD -passout pass:TemporaryPassword
Löschen vom PW
openssl rsa -in private.key -out "NewKeyFile.key" -passin pass:TemporaryPassword
PEM erstellen
cat "NewKeyFile.key" "certificate.crt" "ca-cert.ca" > PEM.pem
PKCS12 erstellen
openssl pkcs12 -export -nodes -CAfile ca-cert.ca -in PEM.pem -out "NewPKCSWithoutPassphraseFile.p12" -passout pass:
PKCS12 anschauen
Bei der PW Abfrage einfach weiter drücken
openssl pkcs12 -in NewPKCSWithoutPassphraseFile.p12 -info
linux/webserver/openssl/pkcs12_to_pem.1683796424.txt.gz · Last modified: by stone
