mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
Update Android cert install documents.
This commit is contained in:
parent
b6727bf7d2
commit
55ff7e8387
@ -12,23 +12,21 @@ We used an Asus Transformer Prime TF201 with Android 4.0.3 in the examples
|
|||||||
below - your device may differ, but the broad process should be similar.
|
below - your device may differ, but the broad process should be similar.
|
||||||
|
|
||||||
|
|
||||||
Installing the mitmproxy certificate
|
## Getting the certificate onto the device
|
||||||
====================================
|
|
||||||
|
|
||||||
The first step is to install mitmproxy's interception certificate on the
|
First we need to get the __mitmproxy-ca-cert.cer__ file into the
|
||||||
Android device. In your ~/.mitmproxy directory, there is a file called
|
__/sdcard/Downloads__ folder on the device. There are a number of ways to do
|
||||||
__mitmproxy-ca-cert.cer__ - we need to transfer this file to
|
this. If you have the Android Developer Tools installed, you can use [__adb
|
||||||
__/sdcard/Downloads__ on the Android device. If this file doesn't exist for
|
push__](http://developer.android.com/tools/help/adb.html) to accomplish this.
|
||||||
you, your certs were generated with an older version of mitmproxy - just copy
|
Depending on your device, you could also transfer the file using external media
|
||||||
the __mitmproxy-ca-cert.pem__ file to __mitmproxy-ca-cert.cer__ and proceed
|
like an SD Card. In this example, we're using wget from within a terminal
|
||||||
from there.
|
emulator to transfer the certificate from a local HTTP server:
|
||||||
|
|
||||||
In this case, we're using wget from Better Terminal Emulator Pro to transfer
|
|
||||||
the certificate from a local HTTP server. Other terminal applications may work,
|
|
||||||
and you might also transfer the file via external media like an SDcard:
|
|
||||||
|
|
||||||
<img src="android-shellwgetmitmproxyca.png"/>
|
<img src="android-shellwgetmitmproxyca.png"/>
|
||||||
|
|
||||||
|
|
||||||
|
## Installing the certificate
|
||||||
|
|
||||||
Once we have the certificate on the local disk, we need to import it into the
|
Once we have the certificate on the local disk, we need to import it into the
|
||||||
list of trusted CAs. Go to Settings -> Security -> Credential Storage,
|
list of trusted CAs. Go to Settings -> Security -> Credential Storage,
|
||||||
and select "Install from storage":
|
and select "Install from storage":
|
||||||
@ -46,8 +44,3 @@ store:
|
|||||||
|
|
||||||
<img src="android-settingssecurityuserinstalledca.png"/>
|
<img src="android-settingssecurityuserinstalledca.png"/>
|
||||||
|
|
||||||
If you're lucky enough to be working with an app that obeys the wireless proxy
|
|
||||||
settings, you're just about done - simply configure the settings to point at
|
|
||||||
mitmproxy. If not, proceed to the next step...
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user