RetroZilla/security/nss/lib/ckfw/builtins
roytam1 44b7f056d9 cherry-picked mozilla NSS upstream changes (to rev bad5fd065fa1, which is on par with 3.20):
bug1001332, 56b691c003ad, bug1086145, bug1054069, bug1155922, bug991783, bug1125025, bug1162521, bug1162644, bug1132941, bug1164364, bug1166205, bug1166163, bug1166515, bug1138554, bug1167046, bug1167043, bug1169451, bug1172128, bug1170322, bug102794, bug1128184, bug557830, bug1174648, bug1180244, bug1177784, bug1173413, bug1169174, bug1084669, bug951455, bug1183395, bug1177430, bug1183827, bug1160139, bug1154106, bug1142209, bug1185033, bug1193467, bug1182667(with sha512 changes backed out, which breaks VC6 compilation), bug1158489, bug337796
2018-07-14 21:22:32 +08:00
..
anchor.c NSS: update to 3.15.5 2018-05-19 22:01:21 +08:00
bfind.c cherry-picked mozilla NSS upstream changes (to rev 902bc119dcdb, which is on par with 3.17.2): 2018-07-14 21:22:30 +08:00
binst.c cherry-picked mozilla NSS upstream changes (to rev bad5fd065fa1, which is on par with 3.20): 2018-07-14 21:22:32 +08:00
bobject.c NSS: update to 3.15.5 2018-05-19 22:01:21 +08:00
bsession.c NSS: update to 3.15.5 2018-05-19 22:01:21 +08:00
bslot.c NSS: update to 3.15.5 2018-05-19 22:01:21 +08:00
btoken.c NSS: update to 3.15.5 2018-05-19 22:01:21 +08:00
builtins.h NSS: update to 3.15.5 2018-05-19 22:01:21 +08:00
certdata.perl cherry-picked mozilla NSS upstream changes (to rev bad5fd065fa1, which is on par with 3.20): 2018-07-14 21:22:32 +08:00
certdata.txt cert: update to verion bundled in 3.36, with header fix for compiling in older NSS 2018-05-19 22:01:27 +08:00
ckbiver.c cherry-picked mozilla NSS upstream changes (to rev bad5fd065fa1, which is on par with 3.20): 2018-07-14 21:22:32 +08:00
config.mk cherry-picked mozilla NSS upstream changes (to rev bad5fd065fa1, which is on par with 3.20): 2018-07-14 21:22:32 +08:00
constants.c NSS: update to 3.15.5 2018-05-19 22:01:21 +08:00
Makefile NSS: update to 3.15.5 2018-05-19 22:01:21 +08:00
manifest.mn NSS: update to 3.15.5 2018-05-19 22:01:21 +08:00
nssckbi.def NSS: update to 3.15.5 2018-05-19 22:01:21 +08:00
nssckbi.h cherry-picked mozilla NSS upstream changes (to rev bad5fd065fa1, which is on par with 3.20): 2018-07-14 21:22:32 +08:00
nssckbi.rc NSS: update to 3.15.5 2018-05-19 22:01:21 +08:00
README NSS: update to 3.15.5 2018-05-19 22:01:21 +08:00

This README file explains how to add a builtin root CA certificate to NSS
or remove a builtin root CA certificate from NSS.

The builtin root CA certificates in NSS are stored in the nssckbi PKCS #11
module. The sources to the nssckbi module are in this directory.

I. Adding a Builtin Root CA Certificate

You need to use the addbuiltin command-line tool to add a root CA certificate
to the nssckbi module. In the procedure described below, we assume that the
new root CA certificate is distributed in DER format in the file newroot.der.

1. Add the directory where the addbuiltin executable resides to your PATH
environment variable. Then, add the directory where the NSPR and NSS shared
libraries (DLLs) reside to the platform-specific environment variable that
specifies your shared library search path: LD_LIBRARY_PATH (most Unix
variants), SHLIB_PATH (32-bit HP-UX), LIBPATH (AIX), or PATH (Windows).

2. Copy newroot.der to this directory.

3. In this directory, run addbuiltin to add the new root certificate. The
argument to the -n option should be replaced by the nickname of the root
certificate.

    % addbuiltin -n "Nickname of the Root Certificate" -t C,C,C < newroot.der >> certdata.txt

4. Edit nssckbi.h to bump the version of the module.

5. Run gmake in this directory to build the nssckbi module.

6. After you verify that the new nssckbi module is correct, check in
certdata.txt and nssckbi.h.

II. Removing a Builtin Root CA Certificate

1. Change directory to this directory.

2. Edit certdata.txt and remove the root CA certificate.

3. Edit nssckbi.h to bump the version of the module.

4. Run gmake in this directory to build the nssckbi module.

5. After you verify that the new nssckbi module is correct, check in
certdata.txt and nssckbi.h.