gen proxy and non-proxy tests certificates

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17255 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-04-26 13:31:58 +00:00
parent a52db0479d
commit 104b2bda39

View File

@@ -61,6 +61,31 @@ cat sub-ca.crt ca.crt > sub-ca-combined.crt
cat test.crt test.key > test.combined.crt
openssl rsa -in test.key -aes256 -passout pass:foobar -out test-pw.key
openssl req -new \
-subj "/CN=proxy/CN=Test cert/C=SE" \
-newkey rsa:1024 \
-sha1 \
-nodes \
-config openssl.cnf \
-out proxy-test.req -keyout proxy-test.key
openssl x509 -req -CAcreateserial -in proxy-test.req -days 7 \
-out proxy-test.crt -CA test.crt -CAkey test.key \
-extfile openssl.cnf -extensions proxy_cert
openssl req -new \
-subj "/CN=no-proxy/CN=Test cert/C=SE" \
-newkey rsa:1024 \
-sha1 \
-nodes \
-config openssl.cnf \
-out no-proxy-test.req -keyout no-proxy-test.key
openssl x509 -req -CAcreateserial -in no-proxy-test.req -days 7 \
-out no-proxy-test.crt -CA test.crt -CAkey test.key \
-extfile openssl.cnf -extensions usr_cert
openssl ca \
-name usr \
-cert ca.crt \