When setting up Charles proxy on my Android phone, the pem certificate cannot be installed?

"Pay attention to the red letter part of the article, 100% solve the problem"

Recently, I need to remotely connect to the internal network for debugging, but the company's vpn account can only log in with a single device, so I have to use a mobile proxy.

The agent used in this article is Charles. I won't talk about the specific Charles usage tutorials on the Internet. I will focus on the problem that Huawei phones cannot install certificates. "The same is true for Xiaomi phones. "

I followed the instructions from Charles on the computer, set the proxy ip and port on the phone, and searched for chls.pro/ssl in the browser of the phone,

Then I downloaded the charles-proxy-ssl-proxying-certificate.pem file, and found that after clicking the file name, the pop-up opening methods "wps", "file viewer", and "compression software" could not be opened, except for these There is no other way to open it, pem file is not recognized.

Then I searched the Internet and finally found the installation method. All mobile phones are similar in principle.

1. After downloading the pem certificate file, it is best to remember the location of the file, as in the Download directory.

2. Open the phone settings and see the steps in the figure below. The test phone is Huawei nova 5:

(1) Open the "Security and Privacy" option on the phone "Settings" page:

(2). Continue to open "More Security Settings":

(3) Open "Encryption and Credentials":

(4). Ok, here I finally found the "install from storage device" mentioned on the Internet, click in:

(5) Why didn't I see the certificate file downloaded just now after I came in? Is it not recognized? Actually it is not. Look at the menu in the upper left corner of the picture below, click to open it:

(6) Click the "Download Content" option on the left menu. If the corresponding pem file is still not found in the "download content", please click on the phone storage "SEA-AL00" to find the file in the corresponding directory .

(7), OK, found the pem file just downloaded. If there is still no pem file or cannot be installed, please rename it to .crt format and try again.

(8). Click the pem file, and the installation interface will pop up. If the phone does not set a lock screen password, it will ask to set a password.

(9). If none of the above steps work, there may be a problem with the downloaded pem file. Don't use the browser that comes with the phone to download, try another browser, like QQ browser, chrome browser.

 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/fesdgasdgasdg/article/details/104606001