aboutsummaryrefslogtreecommitdiff
path: root/scripts/testroot.sh
blob: ae94141d0a996dc4ae4d482fc884c5a3401680e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
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