question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS 13.3: Certificate installation instructions need improvement

See original GitHub issue

Problem Description

After installing profile and activating it, Safari still shows websites as “not trusted” and apps show “network error”

Steps to reproduce the behavior:

  1. Configure wifi to use mitmproxy
  2. Install and activate profile from mitm.it
  3. Navigate anywhere in Safari

refs https://github.com/mitmproxy/mitmproxy/issues/3649 (added EKU) and #3647

System Information

Paste the output of “mitmproxy --version” here.

Mitmproxy: 5.0.0
Python:    3.7.5
OpenSSL:   OpenSSL 1.1.1d  10 Sep 2019
Platform:  Darwin-19.2.0-x86_64-i386-64bit

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:23 (7 by maintainers)

github_iconTop GitHub Comments

13reactions
andigcommented, Dec 20, 2019

I’ve found that I need to add one more step. After following 1-4, I needed to trust the certificate as root certificate. This is apparently not achieved by installing the profile alone:

Goto Settings -> General -> Info -> Certificate Trust -> Mitmproxy and enabled “Trusted Root” (German screenshot below):

IMG_5C7034BD2845-1

Is this the expected behaviour? Add to docs? Otherwise good to close!

4reactions
ohldcommented, Dec 19, 2019

I finally found out how to run all of this.

My settings

mitmproxy --version
  Mitmproxy: 5.0.0
  Python:    3.7.5
  OpenSSL:   OpenSSL 1.1.1d  10 Sep 2019
  Platform:  Darwin-18.7.0-x86_64-i386-64bit

iPhone XS (current latest OS).

Step-by-step

Macbook

  1. brew install mitmproxy
  2. run mitmweb for web interface
  3. in new Terminal window run ifconfig to find out your laptop local IP address (probably starts with 192.168. ... )

iPhone

  1. Open settings -> Wi-Fi -> “your Wi-Fi network” -> Configure Proxy
  2. Insert into “Server” your local laptop’s IP and default port “8080”
  3. In Safari open website ‘mitm.it’ and install sertificate
  4. Open Settings -> General -> Profiles -> mitmproxy -> Verify the sertificate

And now everything will be Trusted and Awesome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Intro to certificate management for Apple devices
Apple devices include a number of preinstalled root certificates from various Certification Authorities (CAs), and iOS, iPadOS, and macOS ...
Read more >
Installing an SSL Certificate on iOS 13 - Unified Security Service
How to install the USS Cloud Gateway SSL certificate on Apple iOS 13. First, you need to download the SSL certificate to the...
Read more >
iOS 13 + Burp SSL Certs Not Able to be Fully Trusted
5. Authorize the installed certificate for TLS authentication by going to Settings > General > About > Certificate Trust Settings, and then ...
Read more >
Why does iOS 13 not trust my own Root CA? - Ask Different
Before you could import a profile and be done with it, but now you have to also open up Settings > General >...
Read more >
iOS13 public beta7 have problem with Charles certificate and ...
Far as I know, Apple has released new security requirements for TLS server certificates in iOS 13 and macOS 10.15. Thus, your Charles...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found