]> WPIA git - nre.git/blobdiff - commonFunctions
upd: find libfaketime platform independently
[nre.git] / commonFunctions
old mode 100755 (executable)
new mode 100644 (file)
index 8b12bf4..168c610
@@ -26,7 +26,7 @@ caSign(){ # csr,ca,config,start,end
     [[ "$end" != "" ]] && end="-enddate $end"
     [[ "$start" == "" && "$end" == "" ]] && start="$ROOT_VALIDITY"
     BASE="$PWD"
-    echo "Signing: $1 with $2"
+    echo "Signing: $BASE/$1 with $2"
     echo "$start $end"
     pushd $2.ca > /dev/null
     if [[ "$2" == "root" && "$1" == root.* ]]; then
@@ -34,7 +34,7 @@ caSign(){ # csr,ca,config,start,end
     else
        signkey="-cert key.crt"
     fi
-    openssl ca $signkey -keyfile key.key -in "$BASE/$1.csr" -out "$BASE/$1.crt" -batch -config "$BASE/selfsign.config" -extfile "$BASE/$3" $start $end
+    openssl ca $signkey -keyfile key.key -in "$BASE/$1.csr" -out "$BASE/$1.crt" -batch -config "$BASE/../selfsign.config" -extfile "$BASE/$3" $start $end
     popd > /dev/null
     echo "Signed"
 }