From 4ebee51bb237b10ab10ba383a9f7b12cf05b15aa Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 3 May 2006 12:08:34 +0000 Subject: Drop use of HOME. Add trailing newline. --- localcsr | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'localcsr') diff --git a/localcsr b/localcsr index 9eb24e0..a3e5daa 100755 --- a/localcsr +++ b/localcsr @@ -68,7 +68,6 @@ done cat < $CONFIG # -------------- BEGIN custom openssl.cnf ----- - HOME = $HOME EOF if [ "`uname -s`" = "HP-UX" ]; then @@ -80,7 +79,7 @@ cat <> $CONFIG [ new_oids ] [ req ] default_days = 730 # how long to certify for - default_keyfile = $HOME/${HOST}_privatekey.pem + default_keyfile = ${HOST}_privatekey.pem distinguished_name = req_distinguished_name encrypt_key = no string_mask = nombstr @@ -105,17 +104,17 @@ fi echo "# -------------- END custom openssl.cnf -----" >> $CONFIG echo "Running OpenSSL..." -openssl req -batch -config $CONFIG -newkey rsa:2048 -out $HOME/${HOST}_csr.pem +openssl req -batch -config $CONFIG -newkey rsa:2048 -out ${HOST}_csr.pem echo "Copy the following Certificate Request and paste into CAcert website to obtain a Certificate." echo "When you receive your certificate, you 'should' name it something like ${HOST}_server.pem" echo -cat $HOME/${HOST}_csr.pem +cat ${HOST}_csr.pem echo -echo The Certificate request is also available in $HOME/${HOST}_csr.pem -echo The Private Key is stored in $HOME/${HOST}_privatekey.pem +echo The Certificate request is also available in ${HOST}_csr.pem +echo The Private Key is stored in ${HOST}_privatekey.pem echo rm $CONFIG #restore umask -umask $LASTUMASK \ No newline at end of file +umask $LASTUMASK -- cgit v1.2.3