cmdref.net - Cheat Sheet and Example

cmdref.net is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools


Sidebar








Cloud



Etc


Reference














.

protocol:openssl:change.html



03. How to Change The Certificate Format(ex. From PEM To PKCS12)

From PEM To PKCS12

This format change is for Importing Browser.

openssl pkcs12 -export -in example.crt -inkey example.key -certfile chain.crt   -out example.com.pfx

or

openssl pkcs12 -export -in example.crt -inkey example.key   -out example.com.p12

or

openssl pkcs12 -export -in "input.pem"  -out "output.p12"

from pfx to crt, key , ca

# openssl pkcs12 -in sample.pfx -clcerts -nokeys -out xxxxx.crt
# openssl pkcs12 -in sample.pfx -nocerts -nodes -out xxxxx.key
# openssl pkcs12 -in sample.pfx -cacerts -nokeys -out xxxxx.ca-bundle


From PKCS12 To PEM

openssl pkcs12 -in "input.p12" -nodes -out "output.pem"


From PEM To DER

openssl x509 -in "input.pem" -inform PEM -out "output.der" -outform DER


From DER To PEM

openssl x509 -in "input.der" -inform DER -out "output.pem" -outform PEM





OpenSSL - How to use OpenSSL from the outside




protocol/openssl/change.html.txt ยท Last modified: 2021/08/18 by admin

Page Tools