Mitmproxy: iOS certificate expired as of 25 April 2020

Created on 27 Apr 2020  路  4Comments  路  Source: mitmproxy/mitmproxy

It looks like mitmproxy certificate generated by mitm.it for iOS has expired as of 25 April, 2020

STR:

  1. Setup manual HTTP proxy in WiFi - Configure Proxy - Manual - Specify server/port
  2. Run mitmproxy in console on MacOS
  3. Open Safari on iOS and open mitm.it website - tap Apple
  4. Go to General - Device Management - mitmproxy - Install the certificate - Tap More Details
  5. Review expiration date

AR: 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

kintriage

Most helpful comment

You have to delete the mitmproxy-ca-* files in ~/.mitmproxy, and then restart mitmproxy.

All 4 comments

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 :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mhils picture mhils  路  4Comments

mancubus77 picture mancubus77  路  3Comments

fjcaetano picture fjcaetano  路  4Comments

ffernand picture ffernand  路  4Comments

atx picture atx  路  4Comments