In order to to capture the HTTP/HTTPS message in Android devices, please navigate to:
Certificate Menu -> Install Certificate on Android Devices
The following photo describes thee steps:
Install Root Proxyman Certificate on your machine: You can follow the macOS Guide.
Config the HTTP Proxy on your device: You can find it in Setting app -> Wifi -> Select the current Wifi -> Config the HTTP Proxy by following the next tables.
Your current IP Network
The current port of Proxyman: 9090 is default
3. Open http://proxy.man/ssl from web browser on your Android Devices in order to install the Proxyman Certificate.
4. From Android N, we have to trust Proxyman Certificate in your app by adding the following code: It means that you can only use SSL Proxying in apps, which you are control
network_security_config.xml<network-security-config><debug-overrides><trust-anchors><!-- Trust user added CAs while debuggable only --><certificates src="user" /><certificates src="system" /></trust-anchors></debug-overrides></network-security-config>
Add to manifest.xml
manifest.xml<?xml version="1.0" encoding="utf-8"?><manifest ... ><application android:networkSecurityConfig="@xml/network_security_config" ... >...</application></manifest>
Some latest Android OSs version requires few extra params:
<?xml version="1.0" encoding="utf-8"?><network-security-config><base-config cleartextTrafficPermitted="true"><trust-anchors><certificates src="system" /></trust-anchors></base-config><domain-config><domain includeSubdomains="true">your_test_url</domain><trust-anchors><certificates src="user"/><certificates src="system"/></trust-anchors></domain-config></network-security-config>
After the installation, we can start capture and view HTTPS message by following SSL Proxying Doc
Credit for Shirshak
If your Android version is below 7 you don't need to do this step. Google added extra security that don't allow man in middle to attack after Android 6. i.e unable to do mitm attack to android app.
We don't bear any responsibility for problems due to rooting phone. So please follow guide at your own risk.
Root your phone with magisk framework.
Install Root file browser so you can copy and paste file in restricted system folder.
Type following script in command line
$ cd ~/.proxyman// We copy certificate to another file name just so we may need it later$ cp proxyman-ca.pem temp.pem$ hash=$(openssl x509 -inform PEM -subject_hash_old -in temp.pem | head -1)$ mv temp.pem "$hash.0"
If you go to ~/.proxyman folder you must notice a file name starting with numbers with extension .0 . Copy that file to andriod.
Using root file browser transfer that file to /system/etc/security/cacerts/