Step by step guide on how to generate and import a custom certificate into the Packet Capture Android app. Useful when the "generate certificate" feature doens't work for you either.
- Generate certificate using
openssl
on your (linux) computer. You can also do this right on your Android device with a terminal/Termux/openssl app.openssl req -x509 -newkey rsa:4096 -keyout key-private.pem -out key-public.pem -days 3650
- Export certificate to PKCS12 format
openssl pkcs12 -export -out keyBundle.p12 -inkey key-private.pem -in key-public.pem -name alias -legacy
- Choose any password and alias name, make sure you remember it for the next few steps.
- Transfer
keyBundle.p12
andkey-public.pem
to the android device- e.g.
adb push keyBundle.p12 /sdcard/Download
etc.
- e.g.
- In android settings, go to Biometrics and Security (note I have a Samsung device, it might be different for you) > Other Security Settings >