Wireshark captures and decrypts HTTPS encrypted packets

Source: Internet
Author: User
Tags begin rsa private key pkcs12 pfx file

First, you must have a certificate in. pem format.

Windows certificates are exported from the. pfx file. This format can also be used on the official website, but I still failed to try it n times.

Finally, only. pfx can be converted to. pem format.

My Wireshark version is 1.4.4 and Winpcap version is 4.1.2.

First, convert. pfx to. pem.

1. Download OpenSSL.

2. Export the certificate. Here I export it to D:/test. pfx.

3. pfx to PEM

Syntax:

Openssl.exe PKCS12-in <drive:/path/to/Cert>. pfx-nodes-out <drive:/path/to/New/Cert>. pem 

I converted it like this:OpenSSL PKCS12-in D:/test. pfx-nodes-out d:/test. pem 

Open test. PEM and delete it to only

----- Begin RSA private key ----- <br/> examples + hray1_3ckpea2eqskiryg <br/> examples/mkuktpiz + examples + 8yf9teqe <br/> examples + qn6ddqidaqab <br/> examples/Examples <br/> signature + wupjxt7m + jmidrgltyjegh + bkgdmnsav <br/> Rs + signature/<br/> signature/Signature/<br/> bvtj7yevnxavabbwtvllojl + signature <br/> ggjkgmr/dorfu/logs/SK/th4ukrhyr5jyaqjan5tf <br/> logs/downloads <br/> logs <br/> geq15ybhenqm7ppc + logs = <br/> ----- end RSA private Key ----- 

Save.

 

Set it in Wireshark's edit --> prefferenct --> protocols --> SSL.

Then, capture the packet and find the Protocol package of tlsv1. Right-click follow SSL stream and then OK.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.