Ask Your Question
0

Any reason Wireshark cannot decrypt local https server

asked 2025-05-11 10:36:57 +0000

Oler gravatar image

I have a local https server on windows on my wifi net that I can access from any device on my wifi net. Unfortunately Wireshark is not decryption the conversation, that in all respects works well. The server is using x509 rsa 256 cryptation. Decryption works well for me for external https servers like Ecko (https://beeceptor.com/resources/http-...).

I am using Pre-Master secret file for my descryptation

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2025-05-13 05:20:25 +0000

SYN-bit gravatar image

Thanks for providing the packet capture. The traffic to your server is using port 8088 which is not listed as an https port by default. This means Wireshark does not know how to interpret the TCP payload. Therefor it will only show the TCP payload as data.

Open the preferences and go to Protocols and then HTTP. Then add 8088 to the SSL/TLS Ports list and click on OK. You should now see the TCP payload being interpreted as TLS and whan you now configure the TLS protocol preferences to point to the right SSLKEYLOGFILE, decryption should work.

edit flag offensive delete link more
0

answered 2025-05-12 05:33:58 +0000

SYN-bit gravatar image

updated 2025-05-12 08:31:43 +0000

Without any information to go on besides "Dycryption for my local site does not work" and "decryption for some other sides does work" it is not possible to determine the reason why.

There are two major reasons for decryption to fail:

  • There was a browser window still open, so it did not take the SSLKEYLOGFILE variable (this does not seem to be your case, as you can decrypt some sites, but I'm not sure they were tried in the same session)
  • There was TLS session resumption, in which case the keying information needed to construct the TLS session keys with the logged pre-master secrets was not captured.

Is the random number in the ClientHello towards your server listed in the SSLKEYLOGFILE? If not, there is something going wring in the collection of the pre-master secrets. If it is there, which cipher is chosen in the ServerHello? Do you see the full TLS handshake or a resumed one?

Can you make an example packet capture of a page on your server that is not privacy sensitive and share the pcap and keys file (on a public file share service like dropbox, onedrive, etc)?

edit flag offensive delete link more

Comments

Or the application is using SChannel for TLS and that does not emit to SSLKEYLOGFILE

grahamb gravatar imagegrahamb ( 2025-05-12 08:02:50 +0000 )edit

all entries in the local https trace is of type tcp like

17 2.328392    10.0.0.12    10.0.0.32        tcp      74 42502 -> 8088 [syn] Seq=0 Win= 65545 Len=0 MMS=1460 SACK PERM TSval=1315497885 TSecr=0 WS=256 
.....

37 3.349302    10.0.0.12    10.0.0.32        tcp   1514 42502 -> 8088 [ACK] Seq=1 Ack=1 Win 87808 Len=1448 TSval=1315498866 TSecr=211422362

so no client or server Hello entries are found.Preview: (hide)

Oler gravatar imageOler ( 2025-05-12 11:56:03 +0000 )edit

The server I am using on Windows is http-server part of Node.js with security (-S) enabled

Oler gravatar imageOler ( 2025-05-12 12:03:16 +0000 )edit

The local server I am using is based on http-server from Node.js (using ssl arguments). Not clear to me if this server is using SChannel fot TLS

The pcap file for the local https server (browsed from 10.0.0.12, served from 10.0.0.32:8088) can be found on Dropbox using link: https://www.dropbox.com/scl/fi/mo3bum...

The file include the two entries shown earlier, no decoded messages are found.

Oler gravatar imageOler ( 2025-05-12 20:04:37 +0000 )edit

http-server from node js uses openssl not SChannel so should be able to send keying material to the log file.

grahamb gravatar imagegrahamb ( 2025-05-13 08:16:13 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2025-05-11 10:36:57 +0000

Seen: 47 times

Last updated: 2 days ago