Charles ssl certificate download failed "due to network failures"

24,204

Solution 1

It's Chrome Mobile - try a different browser, Dolphin worked fine. Yet another thing Google broke in Chrome Mobile.

Solution 2

As a workaround, type this into your address bar and press Go.

data:text/html,<a href=http://www.charlesproxy.com/getssl/>Save This Link

Long-press on the link that appears and choose Save Link. Then open the certificate you downloaded.

Solution 3

I manually worked around this issue by:

  1. Exporting the Charles certificate (Help > SSL Proxying > Export Charles Root Certificate and Private Key...) and setting a suitable password
  2. Copying the certificate to Google Drive
  3. Disabling the Manual Proxy setting on the Android device
  4. On the Android device going to Settings > Security > Install from storage
  5. Selecting the Google Drive account containing the certificate
  6. Selecting the certificate file and entering the password
  7. Selecting "VPN and Apps" for "Credential use"

The certificate was then loaded into the system-wide User credential storage and I was able to successfully SSL proxy the app I'm currently working on.

Solution 4

I did it very simply.

  1. Go to URL http://charlesproxy.com/getssl/
  2. In Charles, you should see a response from the server with the certificate. Like in this screen: http://i.stack.imgur.com/pe3z7.png

  3. Copy this text in txt file, and save it like *.cer

  4. Attach *.cer to email, and send it to a device.
  5. On your phone, you should click on the attached file and install the certificate.
  6. Profit!)

Solution 5

I was also getting charles-ssl-certificate-download-failed-due-to-network-failures error. I had updated charles to version 3.11.5 and then installed charles certificate on my mobile device.

It worked like a charm. I guess either in earlier version my browser was not configured to use charles proxy. Or there might be some issue in previous charles version.

Hope it helps :)

Share:
24,204
alexbirkett
Author by

alexbirkett

Updated on June 17, 2020

Comments

  • alexbirkett
    alexbirkett almost 4 years

    The Charles SSL/HTTPS proxying was working fine on my Samsung Galaxy S5 phone.

    I remove the certificate while not debugging because the phone warns me about the connection being monitored by a third party.

    Now when I attempt to re-download the certificate from http://www.charlesproxy.com/getssl/ I get a charles-proxy-ssl-proxying-certificate.pem download failed due to network failures error:

    charles-proxy-ssl-proxying-certificate.pem download failed due to network failures.

    The phone is set up to use the Charles proxy. HTTP traffic can be inspected in Charles.

    I'm running Charles 3.11.4 but I've also tested with 3.11.2. The phone is running Android 5.0

    I tested with an LG Nexus 5 and the certificate downloaded and installed without any problems.