2021-10-07 08:02:48 +00:00
|
|
|
# b2g-certificates
|
2014-11-21 14:48:43 +00:00
|
|
|
|
|
|
|
A shell script to add root certificates to Firefox OS
|
2014-11-21 15:01:53 +00:00
|
|
|
|
2021-10-07 08:02:48 +00:00
|
|
|
[Original README](README-original.md)
|
2014-11-21 15:01:53 +00:00
|
|
|
|
2021-10-08 05:55:25 +00:00
|
|
|
## Usage
|
|
|
|
For Linux shell:
|
|
|
|
```bash
|
|
|
|
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.
|
|
|
|
```
|
|
|
|
|
2021-10-07 08:02:48 +00:00
|
|
|
Linux (Debian & Ubuntu):
|
2014-11-21 15:01:53 +00:00
|
|
|
|
2021-10-07 08:02:48 +00:00
|
|
|
```bash
|
|
|
|
sudo apt-get install libnss3-tools adb wget
|
|
|
|
git clone https://github.com/openGiraffes/b2g-certificates
|
|
|
|
cd b2g-certificates
|
2014-11-21 15:01:53 +00:00
|
|
|
|
2021-10-07 08:02:48 +00:00
|
|
|
chmod +x ./add-certificates-to-phone.sh
|
2021-10-08 05:55:25 +00:00
|
|
|
./add-certificates-to-phone.sh -d # For Nokia user
|
2014-11-21 15:01:53 +00:00
|
|
|
|
2021-10-07 09:42:16 +00:00
|
|
|
# If you are using WSL, please run this (Need to add Android Platform Tools directory to PATH)
|
2021-10-07 08:02:48 +00:00
|
|
|
chmod +x ./add-certificates-to-phone-wsl.sh
|
2021-10-08 05:55:25 +00:00
|
|
|
./add-certificates-to-phone-wsl.sh -d # For Nokia user
|
2021-10-07 08:02:48 +00:00
|
|
|
```
|
2014-11-21 15:01:53 +00:00
|
|
|
|
2021-10-07 09:42:16 +00:00
|
|
|
Windows Batch(Need to add Android Platform Tools directory to PATH):
|
2014-11-21 15:01:53 +00:00
|
|
|
|
2021-10-08 05:55:25 +00:00
|
|
|
```
|
2021-10-07 08:02:48 +00:00
|
|
|
add-certificates-to-phone.bat
|
2021-10-08 05:55:25 +00:00
|
|
|
|
|
|
|
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)
|
2021-10-07 08:02:48 +00:00
|
|
|
```
|
2014-11-21 15:01:53 +00:00
|
|
|
|
2021-10-07 10:05:20 +00:00
|
|
|
NSS certutil compiled by myself.
|
|
|
|
|
|
|
|
`sed.exe` from [mbuilov/sed-windows](https://github.com/mbuilov/sed-windows)
|