From 104b2bda3960ae1877e2523d9b30812802a10a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 26 Apr 2006 13:31:58 +0000 Subject: [PATCH] gen proxy and non-proxy tests certificates git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17255 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hx509/data/gen-req.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/lib/hx509/data/gen-req.sh b/lib/hx509/data/gen-req.sh index 4e0d79760..944f0ab18 100644 --- a/lib/hx509/data/gen-req.sh +++ b/lib/hx509/data/gen-req.sh @@ -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 \