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