diff options
author | Jonas Smedegaard <dr@jones.dk> | 2006-05-03 12:08:34 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2006-05-03 12:08:34 +0000 |
commit | 4ebee51bb237b10ab10ba383a9f7b12cf05b15aa (patch) | |
tree | 7a912cf5827f07d030e820ea35f5a1f6f3efb42e /localcsr | |
parent | bd2ecffd4089563ef6e186b29c9f5d8290568741 (diff) |
Drop use of HOME. Add trailing newline.
Diffstat (limited to 'localcsr')
-rwxr-xr-x | localcsr | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -68,7 +68,6 @@ done cat <<EOF > $CONFIG # -------------- BEGIN custom openssl.cnf ----- - HOME = $HOME EOF if [ "`uname -s`" = "HP-UX" ]; then @@ -80,7 +79,7 @@ cat <<EOF >> $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 |