This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

Can I capture certificate and store it without implementing session key of both TLSv1.2 and TLSv1.3

asked Nov 12 '25

Can I capture certificate and store it without implementing session key of both TLSv1.2 and TLSv1.3 in Linux , I am trying to store TLS_Certificate details using pyshark but unable to do that , is their any other tools we should use or we can store using pyshark.

1 Answer

0

answered Nov 12 '25

With a recent version of tshark (4.6.x), you can export x509 certificates to files, how you handle them in pyshark is up to that separate project.

An example:

tshark -r <path\to\capture\file> -export-objects x509af,<path\to\destdir>

Comments

To add to that, please note that the certificate is sent in the unencrypted phase of the handshake in TLSv1.2 and it is sent in the encrypted phase of the handshake in TLSv1.3. This means you will only see the certificates sent in a TLSv1.2 connection if you do not provide the TLS session keys.

User 36540 ( Nov 12 '25 )
cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.