diff options
author | Rob Austein <sra@hactrn.net> | 2007-10-31 16:31:38 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-10-31 16:31:38 +0000 |
commit | 8015aac75ab11bd601b354ebb34c976448d8b575 (patch) | |
tree | 9e02a2c173819a1c8820e3f55602db1ca843398e /scripts/testroot.generate.sh | |
parent | 65baffdd2fbcc227d8d0a6ee57849abfbb5b7e9d (diff) |
Cleanup
svn path=/scripts/testroot.cer; revision=1215
Diffstat (limited to 'scripts/testroot.generate.sh')
-rw-r--r-- | scripts/testroot.generate.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/testroot.generate.sh b/scripts/testroot.generate.sh new file mode 100644 index 00000000..cfba7155 --- /dev/null +++ b/scripts/testroot.generate.sh @@ -0,0 +1,14 @@ +#!/bin/sh - +# $Id$ +# +# Generate test root resource certificate for use with testroot.py server. + +tempfiles='01.pem testroot.index testroot.index.old testroot.serial testroot.serial.old testroot.index.attr testroot.req' + +rm -f $tempfiles +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 +rm -f $tempfiles |