I've spent the whole day trying to decrypt some SSL packets on Wireshark using my .pem certificate but in vain.
I got the certificate using mitmproxy.
The header and footer of my .pme certificate are the following:
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
When I import the certificate on Wireshark (Edit > preferences > protocols > ssl > Edit) so I can decrypt SSL packets I get the following error:
Can't load private key from /home/user/Téléchargements/mitmproxy-ca.pem: can't import pem data: The requested data were not available.
Many resources like generate a root certificat say that I need to have the following header and footer so that Wireshark manages to parse the private key:
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
So did I; I've modified my header and footer, but Wireshark is still incapable of loading the private key.
Any ideas on how I can make this work?