A shell script to add root certificates to Firefox OS/KaiOS
 
 
Go to file
LiarOnce 4937864e1e
Merge pull request #1 from Unixware/patch-1
Update add-certificates-to-phone.sh
2021-10-11 16:12:37 +08:00
bin Change sed to mbuilov/sed-windows 2021-10-07 18:05:20 +08:00
certs Upload 2021-10-07 16:02:48 +08:00
.gitignore Windows batch final. 2021-10-07 17:35:32 +08:00
README-original.md Upload 2021-10-07 16:02:48 +08:00
README.md Support with parameters, please check the latest document 2021-10-08 13:55:25 +08:00
add-certificates-to-phone-wsl.sh Support with parameters, please check the latest document 2021-10-08 13:55:25 +08:00
add-certificates-to-phone.bat Support with parameters, please check the latest document 2021-10-08 13:55:25 +08:00
add-certificates-to-phone.sh Update add-certificates-to-phone.sh 2021-10-10 11:37:50 +01:00

README.md

b2g-certificates

A shell script to add root certificates to Firefox OS

Original README

Usage

For Linux shell:

Usage: add-certificates-to-phone.sh [-r] (dir) | [-d] | [-h]

-r (dir) Enter the NSS DB root directory ( Such as Nokia, enter /data/b2g/mozilla )
         Some phones may be different.
         For more information, please visit: https://github.com/openGiraffes/b2g-certificates
-d Use default directory (/data/b2g/mozilla)
-h Output this help.

Linux (Debian & Ubuntu):

sudo apt-get install libnss3-tools adb wget
git clone https://github.com/openGiraffes/b2g-certificates
cd b2g-certificates

chmod +x ./add-certificates-to-phone.sh
./add-certificates-to-phone.sh -d # For Nokia user

# If you are using WSL, please run this (Need to add Android Platform Tools directory to PATH)
chmod +x ./add-certificates-to-phone-wsl.sh
./add-certificates-to-phone-wsl.sh -d # For Nokia user

Windows Batch(Need to add Android Platform Tools directory to PATH):

add-certificates-to-phone.bat

Enter the NSS DB root directory ( Such as Nokia, enter /data/b2g/mozilla )
Some phones may be different.
For more information, please visit: https://github.com/openGiraffes/b2g-certificates

(Enter the path here)

NSS certutil compiled by myself.

sed.exe from mbuilov/sed-windows