# sslkeylog **Repository Path**: pshen10/sslkeylog ## Basic Information - **Project Name**: sslkeylog - **Description**: sslkeylog(SSL/TLS密钥日志管理的开源项目),帮助开发者安全记录和分析加密连接中的关键数据,提升网络安全性和调试效率。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-03-03 - **Last Updated**: 2025-03-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TLS/SSL 抓包 wireshark 分析 # Demo 1. Start Server $ openss s_server -accept 8443 -cert pubcert.pem -key privkey.pem 2. Start tcpdump $ tcpdump -I lo -w tls_demo.pcap 3. Start Client, Send some data to Server $ openssl s_client - connect localhost:8443 4. Server receive & send some data 5. Stop tcpdump 6. Wireshark analyse tls_demo.pcap with tls_demo.keys, can see decrypted message. ![输入图片说明](demo_cipher.png) ![输入图片说明](demo_plain.png) ![输入图片说明](demo_setting.png) # sslkeylog sslkeylog library source code from https://git.lekensteyn.nl/peter/wireshark-notes/tree/src # Reference https://wiki.wireshark.org/TLS https://lekensteyn.nl/files/wireshark-ssl-tls-decryption-secrets-sharkfest18eu.pdf#page=19 https://djangocas.dev/blog/openssl-tls-ssl-certificate-csr-s_server-s_client-examples/