gecko/security/nss/tests/chains/ocspd-config
2011-05-05 16:35:11 +02:00
..
ocspd-certs.sh Bug 527659, Update mozilla-central to NSS 3.12.6 (beta) 2010-02-07 12:54:28 +01:00
ocspd.conf.template
readme Bug 642148 - Upgrade Mozilla to NSPR 4.8.8 beta 3 and NSS 3.12.10 beta 1, r=wtc, r=kaie 2011-05-05 16:35:11 +02:00

This script is used to generate certificates used by ocspd.

Some steps to run (only once - before all OCSP testing):
1.  Edit security/nss/tests/chains/scenarios/scenarios to have there only ocspd.cfg
2.  Set environment variable to run only chains tests: export NSS_TESTS=chains.sh
3.  Set environment variable to have the correct URI in the certificates: export NSS_AIA_OCSP=http://dochinups.us.oracle.com
4.  Run tests: ./all.sh
5.  Go to results directory: cd tests_results/security/${HOST}.${ID}/chains
6.  Copy ocspd-certs.sh and ocspd.conf.template to this directory
7.  Run: ./ocspd-certs.sh OCSPD ${OCSPD_ETC_DIR} ${LIBPKIX_CERTS_DIR}:
    Example: ./ocspd-certs.sh OCSPD /export/iopr/openca-ocsp-responder/etc/ocspdPKIX \
       ~/nss/securitytip/mozilla/security/nss/tests/libpkix/certs
8.  Commit the new certificates that have been generated under ~/nss/securitytip/mozilla/security/nss/tests/libpkix/certs
9.  Copy config files and keys/certs/crls to ocspd etc directory:
    cp *.conf /Volumes/dochinups.red.iplanet.com/openca-ocsp-responder/etc/ocspdPKIX
    cp *.pem *.key /Volumes/dochinups.red.iplanet.com/openca-ocsp-responder/etc/ocspdPKIX/OCSPD
10. Start ocsp deamons on dochinups (for all configs).