summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKai Engert <kaie@kuix.de>2013-03-20 21:13:45 +0100
committerKai Engert <kaie@kuix.de>2013-03-20 21:13:45 +0100
commit4ec3891c5d5d30e6f6c46d78fc7bc477e6731a86 (patch)
tree99e9cf0ccf9d943778e856ae2ee285935f6664c4 /tests
parente798f734982aea4d3bf83e48b1b97c98d3ac1d90 (diff)
downloadnss-hg-4ec3891c5d5d30e6f6c46d78fc7bc477e6731a86.tar.gz
Bug 852781 - TestUser50.cert and TestUser51.cert just expired, PayPalEE will expire April 1, r=wtc
Diffstat (limited to 'tests')
-rw-r--r--tests/libpkix/certs/PayPalEE.certbin1615 -> 1531 bytes
-rw-r--r--tests/libpkix/certs/TestCA.ca.certbin628 -> 628 bytes
-rw-r--r--tests/libpkix/certs/TestUser50.certbin613 -> 615 bytes
-rw-r--r--tests/libpkix/certs/TestUser51.certbin613 -> 615 bytes
-rwxr-xr-xtests/libpkix/certs/make-ca-u50-u5137
5 files changed, 37 insertions, 0 deletions
diff --git a/tests/libpkix/certs/PayPalEE.cert b/tests/libpkix/certs/PayPalEE.cert
index 152efd3cd..17eaa64bc 100644
--- a/tests/libpkix/certs/PayPalEE.cert
+++ b/tests/libpkix/certs/PayPalEE.cert
Binary files differ
diff --git a/tests/libpkix/certs/TestCA.ca.cert b/tests/libpkix/certs/TestCA.ca.cert
index f68512a12..929b793d3 100644
--- a/tests/libpkix/certs/TestCA.ca.cert
+++ b/tests/libpkix/certs/TestCA.ca.cert
Binary files differ
diff --git a/tests/libpkix/certs/TestUser50.cert b/tests/libpkix/certs/TestUser50.cert
index 304f8f560..ed71727fa 100644
--- a/tests/libpkix/certs/TestUser50.cert
+++ b/tests/libpkix/certs/TestUser50.cert
Binary files differ
diff --git a/tests/libpkix/certs/TestUser51.cert b/tests/libpkix/certs/TestUser51.cert
index 0cbeb1bcf..1b45db286 100644
--- a/tests/libpkix/certs/TestUser51.cert
+++ b/tests/libpkix/certs/TestUser51.cert
Binary files differ
diff --git a/tests/libpkix/certs/make-ca-u50-u51 b/tests/libpkix/certs/make-ca-u50-u51
new file mode 100755
index 000000000..5d8f920a9
--- /dev/null
+++ b/tests/libpkix/certs/make-ca-u50-u51
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+mkdir tmp
+cd tmp
+dd if=/dev/urandom bs=512 count=1 of=noise
+echo "" > pwfile
+
+certutil -d . -N -f pwfile
+
+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
+5
+6
+9
+n
+y
+
+n
+5
+6
+7
+9
+n
+CERTSCRIPT
+
+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
+
+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
+
+certutil -d . -L -n ca -r > TestCA.ca.cert
+certutil -d . -L -n u50 -r > TestUser50.cert
+certutil -d . -L -n u51 -r > TestUser51.cert
+
+echo "Created multiple files in subdirectory tmp: TestCA.ca.cert TestUser50.cert TestUser51.cert"