diff options
author | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2011-03-27 19:52:49 -0700 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@omgwallhack.org> | 2011-03-27 19:52:49 -0700 |
commit | 478e1993e0760ad83668243111be155b3e9e7050 (patch) | |
tree | 46d356b1a306d5333dd530115e57b61bcb3ab803 /genca.sh | |
download | cash-478e1993e0760ad83668243111be155b3e9e7050.tar.gz cash-478e1993e0760ad83668243111be155b3e9e7050.zip |
Initial content; missing some mailcert.sh support
Diffstat (limited to 'genca.sh')
-rwxr-xr-x | genca.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/genca.sh b/genca.sh new file mode 100755 index 0000000..8178cea --- /dev/null +++ b/genca.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# ./genca.sh (configfile) +set -e + +SUPPLEMENTARY_CONFIG="$1" + +. ./configure.sh + +# Certificate Authority +mkdir -pv "$CA"/ca "$CA"/certs "$CA"/signed +echo 1000 > "$CA"/ca/"$CA".serial +touch "$CA"/ca/"$CA".idx +openssl req -config "$OPENSSL_CONFIG" -new -x509 -days "$EXPIRE" -extensions v3_ca -keyout "$CA"/ca/"$CA".key -out "$CA"/ca/"$CA".crt +chmod 600 "$CA"/ca/"$CA".key |