Can't add a mitmproxy .p12 certificate to Windows programmatically

2

I want to programmatically install certificate into Windows for localhost MITM SSL sniffing.

>certutil -addstore "TrustedPublisher" mitmproxy-ca-cert.p12
TrustedPublisher
CertUtil: -addstore команда НЕ ВЫПОЛНЕНА: 0x80093102 (ASN: 258)
CertUtil: В ASN1 встречен неожиданный конец данных.

means in English the Unexpected end of data While this command:

>certutil -asn \Users\Nakilon\.mitmproxy\mitmproxy-ca-cert.p12
CertUtil: -asn - команда успешно выполнена.

doesn't see any issue.

windows
ssl-certificate
man-in-the-middle
mitmproxy
asked on Stack Overflow Nov 28, 2013 by Nakilon

2 Answers

2

You can just convert .p12 cert to .pem and then you will be able to import it through your command.

answered on Stack Overflow Feb 4, 2014 by F1ashhimself
0

From http://docs.mitmproxy.org/en/latest/certinstall.html:

 certutil.exe -importpfx Root mitmproxy-ca-cert.p12
answered on Stack Overflow Apr 28, 2016 by Maximilian Hils

User contributions licensed under CC BY-SA 3.0