So, pcapy is a great, simple
library to interface with libpcap. It works well for reading live packets and
dump files. There's only one problem: there is no way to modify or create a
struct pcap_header from Python code. So there's really no way to add data to
the packets and add them to a dump file.
Yet another command I'll never remember unless I write it down. Here's how to view a certificate. In my case I was viewing a certificate that Mutt had stored:
openssl x509 -in .mutt_certs -noout -text