From 58ff485edbe4bb93ebc922d14df24247846132b6 Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Mon, 3 Dec 2007 09:42:38 +0000 Subject: added ssl tools --- ssltools/easy-rsa/build-ca | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 ssltools/easy-rsa/build-ca (limited to 'ssltools/easy-rsa/build-ca') diff --git a/ssltools/easy-rsa/build-ca b/ssltools/easy-rsa/build-ca new file mode 100755 index 0000000..5ad59cc --- /dev/null +++ b/ssltools/easy-rsa/build-ca @@ -0,0 +1,13 @@ +#!/bin/sh + +# +# Build a root certificate +# + +if test $KEY_DIR; then + cd $KEY_DIR && \ + openssl req -days 3650 -nodes -new -x509 -keyout ca.key -out ca.crt -config $KEY_CONFIG && \ + chmod 0600 ca.key +else + echo you must define KEY_DIR +fi -- cgit v1.2.3