Add HttpCanary's root certificate to the system CA directory

Description:

From Android 7.0(Android N), the Android system no longer trusts the user certificate . This may cause the issues such as unable to capture SSL/TLS encrypt packets or no network connection. Therefore, you need to add the HttpCanary root certificate to the system CA directory. This operation is only feasible on rooted device.

Instructions:

1、Obtain an installed HttpCanary's certificate file (.0 format): You can find it under /data/misc/user/0/cacerts-added/ directory (you need to distinguish by file's time attribute if there are more than one file). Or you can export it to SD card in HttpCanary's root certificate settings.



2、Copy the .0 file(do not edit it's name) to the system CA directory: /system/etc/security/cacerts/.



Method 1: Use adb commands to copy,the "<cert>" in the below is .0 file name of yours.


Or


Method 2: Use the applications which can operate on system files to copy it, such as the MT manager.


3、After adding it successfully,you can find the corresponding HttpCanary CA certificate under Settings -> Encryption & credentials -> Trusted credentials -> System.


Notes: