TLS Part 1: The Protocol
4. Saying Hello
curl --tls-max 1.2 -v https://tls1.cryptohack.org
openssl s_client -tls1_2 -connect tls1.cryptohack.org:443
5. Decrypting TLS 1.2
- Open tha capture file in Wireshark
- Edit -> Preferences -> RSA Keys -> Add new keyfile -> Select the .pem file containing private key
- Filter the packets:
http2
- Check out the packet no. 27
6. Decrypting TLS 1.3
- Open tha capture file in Wireshark
- Edit -> Preferences -> Protocols -> TLS -> (Pre)-Master-Secret log filename -> Select the keylogfile
- Filter the packets:
http2
- Check out the packet no. 27