Skip to content

matutter/ssl-install-via-adb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Generate the certificate

make

Update /etc/hosts

The following scripts will update /etc/hosts and setup a reverse proxy.

./install.sh
./reverse.sh

Install certificate

Use nopasswd as the password when prompted.

make
adb push /certs/root.pfx /sdcard/Downloads

Install certs/root.pfx on device via UI by going to Settings > Security under the Credential Storage section click Install from Storage and navigate to the Downloads folder. Use nopasswd to install the CA.

Finally test1.example.com may pe installed in NGINX.

Uninstall changes

install restore

Test with wget

adb shell /data/local/tmp/busybox wget -c -P /data/local/tmp -S https://test1.test.local:8443

Installing the certificate from the gui will likely install the certificate in this path: /data/misc/keystore/user_0/*. Where is will be broken up into CACERT, USRCERT, USRPKEY parts.

About

Self sign SSL on Android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published