summaryrefslogtreecommitdiff
path: root/localcsr
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2006-05-03 12:08:34 +0000
committerJonas Smedegaard <dr@jones.dk>2006-05-03 12:08:34 +0000
commit4ebee51bb237b10ab10ba383a9f7b12cf05b15aa (patch)
tree7a912cf5827f07d030e820ea35f5a1f6f3efb42e /localcsr
parentbd2ecffd4089563ef6e186b29c9f5d8290568741 (diff)
Drop use of HOME. Add trailing newline.
Diffstat (limited to 'localcsr')
-rwxr-xr-xlocalcsr13
1 files changed, 6 insertions, 7 deletions
diff --git a/localcsr b/localcsr
index 9eb24e0..a3e5daa 100755
--- a/localcsr
+++ b/localcsr
@@ -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