It looks like mitmproxy certificate generated by mitm.it for iOS has expired as of 25 April, 2020
STR:
mitmproxy in console on MacOSAR: Expired: 25 April 2020
System Information
Mitmproxy: 5.1.1
Python: 3.8.2
OpenSSL: OpenSSL 1.1.1g 21 Apr 2020
Platform: macOS-10.15.3-x86_64-i386-64bit
iOS: 13.3.1
Thanks for using mitmproxy for at least a year I guess. 馃槃
For security reasons, the mitmproxy CA is generated uniquely on the first start and is not shared between mitmproxy installations on different devices. If you delete your local CA, a new one is generated on the next startup.
We should also display a warning that the CA has expired and needs to be regenerated. Is that not the case for you?
Hi @mhils I have tried deleting my local certificate from both iOS and MacOS keychain, but when I open mitmproxy-ca-cert.cer file from ~/.mitmproxy it still shows that the certificate has expired on Apr 25, 2020.
I have updated my mitmproxy on MacOS via brew upgrade mitmproxy command today.
How do I re-generate certificate for MacOS app?
You have to delete the mitmproxy-ca-* files in ~/.mitmproxy, and then restart mitmproxy.
@mhils It worked! Thank you so much :)
Most helpful comment
You have to delete the
mitmproxy-ca-*files in~/.mitmproxy, and then restart mitmproxy.