How does Wireshark crawl HTTPS traffic in your Mac?

Source: Internet
Author: User

Overview

In some scenarios, we need to analyze the site's HTTPS traffic, and the Devtools tool provided by Chrome won't be able to view previous requests when the page jumps.
Using Wireshark to fully grasp the entire process, this article is mainly on-line information to collate, for future inspection.

Steps

As an chrome example, the Mac details the following:

1. Find a browser
sudo find / -iname "Google Chrome"

You can find the path where the binary is/Applications/Google Chrome.app/Contents/MacOS/Google Chrome

2. Run chrome and specify Sslkey logfile
sudo /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --ssl-key-log-file=/Users/`whoami`/sslkeylog.log
3. Start Wireshark and configure the Sslkey file

menu bar, Wireshark a Preferences ProtocolsSSL
When (Pre)-Master-Secret log filename you fill in the file path specified when you just started,

4. Trace SSL Stream

Visit the HTTPS site, then filter the fields in the Wireshark ssl to find a bag
右键, FollowSSL Stream
To see the decrypted HTTP request.

How does Wireshark crawl HTTPS traffic in your Mac?

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.