From 21ff8991f2dc6f99ae8606f4e805c83b884bd02b Mon Sep 17 00:00:00 2001 From: age Date: Wed, 13 Dec 2006 22:06:55 +0000 Subject: [PATCH] old script removed.. --- scripts/make_stunnel_cert.sh | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100755 scripts/make_stunnel_cert.sh diff --git a/scripts/make_stunnel_cert.sh b/scripts/make_stunnel_cert.sh deleted file mode 100755 index 6792c81..0000000 --- a/scripts/make_stunnel_cert.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# -# this script creates the stunnel certificate for https -# -# parameter: "destination file" -# -# called by: -# - cbox-manage.sh during network-up if no certificate was found on the config partition -# - -set -eu - -# parse config file -. /etc/cryptobox/cryptobox.conf - - -## vcert values are in openssl.conf -CERTFILE="$1" -TMP_FILE=/tmp/cryptobox-cert.tmp - -[ ! -f "$OPENSSL_CONF_FILE" ] && echo "`basename $0`: $OPENSSL_CONF_FILE not found" && exit 2 -# this command creates the certificate -# this is required, because the certbuilding asks for 5 returns -echo -ne "\n\n\n\n\n" | openssl req -new -x509 -nodes -days 3650 -config "$OPENSSL_CONF_FILE" -out "$CERTFILE" -keyout "$CERTFILE" -chmod 600 "$CERTFILE" - -# next step needs a lot of randomdata -dd if=/dev/urandom of="$TMP_FILE" bs=1024 count=1024 -openssl dhparam -rand "$TMP_FILE" 512 >> "$CERTFILE" -rm "$TMP_FILE" - -#ln -sf ${CERTPATH}stunnel.pem ${CERTPATH}`openssl x509 -noout -hash < "${CERTPATH}stunnel.pem"`.0 - -## print out cert values -#openssl x509 -subject -dates -fingerprint -in stunnel.pem