diff options
author | Rob Austein <sra@hactrn.net> | 2007-10-31 05:14:08 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-10-31 05:14:08 +0000 |
commit | 41ef29afe33abf9f9c878fa0b418b97841a0fdb3 (patch) | |
tree | ef56f234fd6dd95d837a2b631977ef7f5e34c29f /scripts/testroot.sh | |
parent | 45beea44397ec2ce2ec483f40c6ebf023203f83b (diff) |
Test certificate to go with testroot.py.
svn path=/scripts/testroot.cer; revision=1212
Diffstat (limited to 'scripts/testroot.sh')
-rw-r--r-- | scripts/testroot.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/testroot.sh b/scripts/testroot.sh new file mode 100644 index 00000000..ae94141d --- /dev/null +++ b/scripts/testroot.sh @@ -0,0 +1,10 @@ +#!/bin/sh - +# $Id$ +# +# Generate test root resource certificate for use with testroot.py server. + +touch testroot.index +echo 01 >testroot.serial +../openssl/openssl/apps/openssl genrsa -out testroot.key 2048 +../openssl/openssl/apps/openssl req -new -config testroot.cnf -key testroot.key -out testroot.req +../openssl/openssl/apps/openssl ca -batch -out testroot.cer -in testroot.req -extfile testroot.cnf -config testroot.cnf -selfsign |