I installed mitmproxy on win 10. Then i go to mitm.it and get .p12 file.
When i click it i get the error:
When i try manually import the cert i get:
certutil.exe -importpfx Root mitmproxy-ca-cert.p12
Enter PFX password:
CertUtil: -importPFX command FAILED: 0x8007000d (WIN32: 13 ERROR_INVALID_DATA)
CertUtil: The data is invalid.
I deleted .mitmproxy folder and restarted. The new cert is going through installation process correctly.
I think problem was that i had upgrade of windows (from 7 to 10) and probably the cert was generated on win 7.
I forgot that i was installing mitm at win 7 some long time ago.