-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.rtf
executable file
·17 lines (15 loc) · 1.19 KB
/
commands.rtf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{\rtf1\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
{\*\generator Riched20 10.0.19041}\viewkind4\uc1
\pard
{\pntext\f0 1.\tab}{\*\pn\pnlvlbody\pnf0\pnindent0\pnstart1\pndec{\pntxta.}}
\fi-360\li720\sa200\sl276\slmult1\f0\fs22\lang9 View PKCS#12 Information on Screen:\line > openssl pkcs12 -info -in cert.pfx -nodes\par
{\pntext\f0 2.\tab}View Only Certificates or Private Key\line > openssl pkcs12 -info -in cert.pfx -nodes -nocerts\line > openssl pkcs12 -info -in cert.pfx -nodes -nokeys\par
{\pntext\f0 3.\tab}Save Certificates and Private Keys to Files\line > openssl pkcs12 -info -in cert.pfx -out skey.pem -nodes -nocerts\line > openssl pkcs12 -info -in cert.pfx -out certificate.crt -nodes -nokeys\par
{\pntext\f0 4.\tab}View the private key\line > openssl rsa -in skey.pem -text\par
{\pntext\f0 5.\tab}View the x509 certificate\line > openssl x509 -in certificate.crt -text\par
\pard
{\pntext\f0 6.\tab}{\*\pn\pnlvlbody\pnf0\pnindent0\pnstart1\pndec{\pntxta.}}
\fi-360\li720\sl276\slmult1 Change password of pfx file\par
\pard\li720\sa200\sl276\slmult1 > openssl pkcs12 -in "PKCSFile" -nodes | openssl pkcs12 -export -out "PKCSFile-Nopass"\par
}