From 84b4e3274b43edd31e520aa982dd3765a3105293 Mon Sep 17 00:00:00 2001 From: Raymond Yee Date: Mon, 9 Dec 2013 15:32:08 -0800 Subject: [PATCH] update script for our current use of *.unglue.it cert --- sysadmin/gen_csr.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/sysadmin/gen_csr.sh b/sysadmin/gen_csr.sh index afbb9d87..07b14a38 100755 --- a/sysadmin/gen_csr.sh +++ b/sysadmin/gen_csr.sh @@ -1,12 +1,5 @@ #!/bin/bash -# gen_csr.sh - Generate CSR for a host name. - -HOSTNAME="$1"; - -if [ -z "${HOSTNAME}" ]; then -echo "Usage : gen_csr.sh HOSTNAME"; -exit; -fi +# gen_csr.sh - Generate SSL Certificates for a host name. # Country Name (2 letter code) [GB]:. # State or Province Name (full name) [Berkshire]:. @@ -23,7 +16,7 @@ STATE="NJ"; LOCALITY="Montclair"; ORGNAME="Gluejar, Inc."; ORGUNIT=""; -CNAME=$HOSTNAME; +CNAME="*.unglue.it"; EMAIL="support@gluejar.com"; PASSWORD=""; OPTION_COMPANY_NAME=""; @@ -36,5 +29,5 @@ $ORGUNIT $CNAME $EMAIL $PASSWORD -$OPTIONAL_COMPANY_NAME" | openssl req -new -key $HOSTNAME.key -out $HOSTNAME.csr +$OPTIONAL_COMPANY_NAME" | openssl req -new -key server.key -out unglue.it.wildcard.csr