Certificates - auto-mate/CheatSheetWiki GitHub Wiki

Cert Extraction From Server to pfx file

Windows, extract certificate from Manage Computer Certificates
Right click on certificate - select "All Tasks" and "Export"
Choose private or not as required.
Use default selections
Enter Password
enter Filename
Next and Finish

Extraction From pfx file

To view contents

openssl.exe pkcs12 -in <path to file exported from >.pfx  

Export the private key (password is required)

openssl pkcs12 -in <path to file exported from >.pfx  -nocerts -out <path>key.pem -nodes  

openssl rsa -in <path>key.pem -out <path>key.txt

FTP Secure On IIS - Get Certificate from client

openssl s_client -connect <IP Address>:990 -showcerts  
⚠️ **GitHub.com Fallback** ⚠️