From a105111b05a06da83b4a17d5902d1cf5643b8bb4 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 31 Oct 2007 17:07:07 +0000 Subject: Checkpoint svn path=/scripts/testroot.cer; revision=1216 --- scripts/testroot.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/testroot.sh (limited to 'scripts/testroot.sh') diff --git a/scripts/testroot.sh b/scripts/testroot.sh new file mode 100644 index 00000000..f4336b2b --- /dev/null +++ b/scripts/testroot.sh @@ -0,0 +1,15 @@ +#!/bin/sh - +# $Id$ +# +# Script to test against testroot.py. +# +# This blows away rpkid's database and rebuilds it with what we need +# for this test. In the long run we must do better than this, but +# gotta start somewhere. + +if test ! -r testroot.cer -o ! -r testroot.key +then + ../openssl/openssl/apps/openssl req -new -newkey rsa:2048 -nodes -keyout testroot.key -out testroot.req -config testroot.cnf + ../openssl/openssl/apps/openssl x509 -req -in testroot.req -out testroot.cer -extfile testroot.cnf -extensions req_x509_ext -signkey testroot.key -text -sha256 + rm -f testroot.req +fi -- cgit v1.2.3