Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

generate a root certificate for MitmProxy

Tags:

openssl

Hi i which to generate a root certificate for MitmProxy app it exists 4 cer's in home location

mitmproxy-ca.pem The private key and certificate in PEM format. mitmproxy-ca-cert.pem The certificate in PEM format. Use this to distribute to most non-Windows platforms. mitmproxy-ca-cert.p12 The certificate in PKCS12 format. For use on Windows. mitmproxy-ca-cert.cer Same file as .pem, but with an extension expected by some Android devices.

At the moment it generates the certificate issuer as MitmProxy i've search'd the source code that is built on python Please help i wish to generate my own cert's or change the source code so it generates an other issuer

Sorry for the bad english //Sm(9)

like image 365
Homer Simpsons Avatar asked May 20 '13 02:05

Homer Simpsons


1 Answers

You can use your own certificate with the mitmproxy's --cert option.

> openssl genrsa -out ca.key 2048
> openssl req -new -x509 -key ca.key -out ca.crt

   ... No need to fill out optional fields ...
   Common Name (eg, YOUR name) []:*.google.com  (domain you want to MITM here)
   ...

> cat ca.key ca.crt > ca.pem 
> mitmproxy --cert=ca.pem
like image 159
Nathan Jhaveri Avatar answered Oct 08 '22 19:10

Nathan Jhaveri