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-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
|
|
|
|
./add-certificates-to-phone.sh
|
2014-11-21 15:01:53 +00:00
|
|
|
|
2021-10-07 08:02:48 +00:00
|
|
|
# If you are using WSL, please run this (Need to set Android Platform Tools as an environment variable)
|
|
|
|
chmod +x ./add-certificates-to-phone-wsl.sh
|
|
|
|
./add-certificates-to-phone-wsl.sh
|
|
|
|
```
|
2014-11-21 15:01:53 +00:00
|
|
|
|
2021-10-07 08:02:48 +00:00
|
|
|
Windows Batch(Testing and NSS `certutil` reported an error):
|
2014-11-21 15:01:53 +00:00
|
|
|
|
2021-10-07 08:02:48 +00:00
|
|
|
```batch
|
|
|
|
add-certificates-to-phone.bat
|
|
|
|
```
|
2014-11-21 15:01:53 +00:00
|
|
|
|
2021-10-07 08:02:48 +00:00
|
|
|
NSS (Windows, 3.35.0, fron AdGuard) `certutil` reported an error:
|
|
|
|
```
|
|
|
|
certutil.exe: function failed: SEC_ERROR_LEGACY_DATABASE: The certificate/key database is in an old, unsupported format.
|
|
|
|
```
|
2014-11-21 15:01:53 +00:00
|
|
|
|