Should data in an HTTPS request appear as encrypted in Chrome developer tools?
Asked Answered
C

1

15

I'm trying to get a better understanding of how SSL works so I installed a self-signed SSL cert on my server for testing.

When I post data to an HTTPS url on the test server, Chrome developer tools shows all the data in plain text. Is that what I should expect or should the data appear as encrypted in the developer tools?

I tried running a packet sniffer (Cocoa Analyzer Packet) and I don't see any of the data that I'm trying to post in plain text, but some messages do show the domain I'm posting too (only the domain, no query params or other data). Is that normal? I was under the impression that everything including the url should be encrypted.

Clemence answered 30/4, 2013 at 18:42 Comment(0)
P
20

The Chrome developer tools wouldn't be very helpful if they just showed the encrypted data. Those tools are located in the network stack before the data gets encrypted and sent to the server.

As you have noticed, a packet sniffer will show that the HTTP message sent over SSL is encrypted on the wire. The domain names are not encrypted because those are needed in plain text for DNS and TCP to send your data to the correct server.

Psychomotor answered 30/4, 2013 at 18:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.