summaryrefslogtreecommitdiff
path: root/localcsr
diff options
context:
space:
mode:
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