Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to observe the HTTPs protocol. How can I use a Wireshark filter to do that?

share|improve this question
For those who want to see the decrypted data without server access, go man in the middle:… – Ciro Santilli 巴拿馬文件 六四事件 法轮功 Dec 14 '14 at 15:38
up vote 13 down vote accepted

As 3molo says. If you're intercepting the traffic, then port 443 is the filter you need. If you have the site's private key, you can also decrypt that SSL . (needs an SSL-enabled version/build of Wireshark.)


share|improve this answer
There is a difference between filtering and monitoring. WireShark is a monitoring tool. Filtering would have to be done with a firewall or similar. – txwikinger Apr 26 '11 at 15:13
@TXwik You filter what you're monitoring with WireShark.... – Holocryptic Apr 26 '11 at 15:58
Question could be clearer ;) – txwikinger Apr 27 '11 at 20:58

tcp.port==443 in the filter window (mac)

share|improve this answer
If you're going to post an answer, it really should be one that's substantially different to the other answers on the page already. Saying the same thing that two other answers already say isn't particularly helpful. – Mark Henderson Jun 13 '14 at 2:52
It is substantially different. He added the tcp prefix, which really helped me, after trying previous answers with no luck. – user53619 Aug 27 '14 at 14:36
I agree, thanks. – cloudsurfin Aug 29 '14 at 19:35

"port 443" in capture filters. See

It will be encrypted data though.

share|improve this answer

Filter tcp.port==443 and then use the (Pre)-Master-Secret obtained from a web browser to decrypt the traffic.

Some helpful links:

"Since SVN revision 36876, it is also possible to decrypt traffic when you do not possess the server key but have access to the pre-master secret... In short, it should be possible to log the pre-master secret to a file with a current version of Firefox, Chromium or Chrome by setting an environment variable (SSLKEYLOGFILE=). Current versions of QT (both 4 and 5) allow to export the pre-master secret as well, but to the fixed path /tmp/qt-ssl-keys and they require a compile time option: For Java programs, pre-master secrets can be extracted from the SSL debug log, or output directly in the format Wireshark requires via this agent." (jSSLKeyLog)

share|improve this answer
anyway to do this on an iPhone mounted on a mac? I can inspect http traffic but not https – chovy Dec 27 '15 at 4:00
I would use a proxy for that @chovy. Is that an alternative? Try BURP and this link:… – Ogglas Dec 27 '15 at 11:35
is there any thing like burp but open source? – chovy Dec 28 '15 at 8:46
I think there are but I haven't tried any myself. Try Googling "intercepting proxy open source" and see what you find. However BURP is well known in the security community and not something shady (despite the name) so I would probably go with BURP. @chovy – Ogglas Dec 28 '15 at 8:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.