Blame nss/tests/libpkix/certs/make-ca-u50-u51
|
Packit |
40b132 |
#!/bin/sh
|
|
Packit |
40b132 |
#
|
|
Packit |
40b132 |
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
Packit |
40b132 |
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
Packit |
40b132 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
mkdir tmp
|
|
Packit |
40b132 |
cd tmp
|
|
Packit |
40b132 |
dd if=/dev/urandom bs=512 count=1 of=noise
|
|
Packit |
40b132 |
echo "" > pwfile
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
certutil -d . -N -f pwfile
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
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 <
|
|
Packit |
40b132 |
5
|
|
Packit |
40b132 |
6
|
|
Packit |
40b132 |
9
|
|
Packit |
40b132 |
n
|
|
Packit |
40b132 |
y
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
n
|
|
Packit |
40b132 |
5
|
|
Packit |
40b132 |
6
|
|
Packit |
40b132 |
7
|
|
Packit |
40b132 |
9
|
|
Packit |
40b132 |
n
|
|
Packit |
40b132 |
CERTSCRIPT
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
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
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
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
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
certutil -d . -L -n ca -r > TestCA.ca.cert
|
|
Packit |
40b132 |
certutil -d . -L -n u50 -r > TestUser50.cert
|
|
Packit |
40b132 |
certutil -d . -L -n u51 -r > TestUser51.cert
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
echo "Created multiple files in subdirectory tmp: TestCA.ca.cert TestUser50.cert TestUser51.cert"
|