Things you will need:
1. Wireshark SSL capture (full! meaning you should apply Wireshark filter:
“ssl.handshake.session_id_length == 0”
2. Server's private key.
Issue:
crypto key export rsa PRIVATEKEYNAME pem terminal 3des cisco123
Copy to clipboard and save as C:\sslkey.pem
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-CBC,6BC5A5640D3C9093
<omitted>
-----END RSA PRIVATE KEY-----
Remember that this key is encrypted and protected by the password, so you will need to remove that protection.
C:\OpenSSL\bin>openssl rsa -check -in C:\sslkey.pem
Enter pass phrase for C:\sslkey.pem:
RSA key ok
writing RSA key
-----BEGIN RSA PRIVATE KEY-----
<...omitted>
-----END RSA PRIVATE KEY-----
C:\OpenSSL\bin>openssl pkcs12 -in C:\iis_private_key.pfx -out C:\sslkey.pem -nodes
Enter Import Password:
MAC verified OK
In Wireshark, go to:
Edit > Preferences > Protocols > SSL
Add to line “RSA keys list”:
<server ip>,443,http,C:\sslkey.pem
Done!
We have 9 guests and no members online