[tor-commits] [bridgedb/master] Fix make-ssl-cert script to output private key and cert in top-level dir.

isis at torproject.org isis at torproject.org
Sun Jan 12 06:06:32 UTC 2014


commit 3f8641e9d16a54dbf806e97e77c5a279434fd3a0
Author: Isis Lovecruft <isis at torproject.org>
Date:   Sat Nov 16 11:28:06 2013 +0000

    Fix make-ssl-cert script to output private key and cert in top-level dir.
---
 scripts/make-ssl-cert |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/scripts/make-ssl-cert b/scripts/make-ssl-cert
index c055fa7..77fd728 100755
--- a/scripts/make-ssl-cert
+++ b/scripts/make-ssl-cert
@@ -31,7 +31,7 @@ while [ -h "$THIS_FILE" ]; do
 done
 
 THIS_PATH="$( cd -P "$( dirname "$THIS_FILE" )" && pwd )"
-REPO_PATH=${THIS_PATH%%/maint}
+REPO_PATH=${THIS_PATH%%/scripts}
 
 function usage () {
     printf "Usage: %s\n\n" $NAME
@@ -54,4 +54,6 @@ openssl x509 -req -days 365 -in server.csr -signkey privkey.pem -out cert
 test -f "privkey.nopasswd" && rm -f privkey.nopasswd
 test -f "privkey" && rm -f privkey
 test -f "server.csr" && rm -f server.csr
-echo "Done. Please retrieve the files from $REPO_PATH"
+
+printf "Done. Your private key was saved in ${REPO_PATH}/privkey.pem \n"
+printf "and your certificate is in ${REPO_PATH}/cert \n"





More information about the tor-commits mailing list