security/nss/tests/libpkix/certs/make-ca-u50-u51

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/tests/libpkix/certs/make-ca-u50-u51	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +mkdir tmp
    1.11 +cd tmp
    1.12 +dd if=/dev/urandom bs=512 count=1 of=noise
    1.13 +echo "" > pwfile
    1.14 +
    1.15 +certutil -d . -N -f pwfile
    1.16 +
    1.17 +certutil -S -z noise -g 1024 -d . -n ca -s "CN=NSS Test CA,O=BOGUS NSS,L=Mountain View,ST=California,C=US" -t C,C,C -x -m 1 -w -1 -v 600 -1 -2 -5 <<CERTSCRIPT
    1.18 +5
    1.19 +6
    1.20 +9
    1.21 +n
    1.22 +y
    1.23 +
    1.24 +n
    1.25 +5
    1.26 +6
    1.27 +7
    1.28 +9
    1.29 +n
    1.30 +CERTSCRIPT
    1.31 +
    1.32 +certutil -S -z noise -g 1024 -d . -n u50 -s "CN=TestUser50,E=TestUser50@bogus.com,O=BOGUS NSS,L=Mountain View,ST=California,C=US" -t ,, -c ca -m 50 -v 598
    1.33 +
    1.34 +certutil -S -z noise -g 1024 -d . -n u51 -s "CN=TestUser51,E=TestUser51@bogus.com,O=BOGUS NSS,L=Mountain View,ST=California,C=US" -t ,, -c ca -m 51 -v 598
    1.35 +
    1.36 +certutil -d . -L -n ca -r > TestCA.ca.cert
    1.37 +certutil -d . -L -n u50 -r > TestUser50.cert
    1.38 +certutil -d . -L -n u51 -r > TestUser51.cert
    1.39 +
    1.40 +echo "Created multiple files in subdirectory tmp: TestCA.ca.cert TestUser50.cert TestUser51.cert"

mercurial