From 600de222bd3db15311c9e2300f99e1a901f8845a Mon Sep 17 00:00:00 2001 From: DJ Lucas Date: Tue, 4 Sep 2018 22:41:01 -0500 Subject: [PATCH] minor logic fixes --- make-ca | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/make-ca b/make-ca index cd41c76..28f3c30 100644 --- a/make-ca +++ b/make-ca @@ -699,10 +699,9 @@ fi # Install Java cacerts.p12 in ${KEYSTORE} if test "${WITH_P12}" == "1"; then - test -f "${DESTDIR}${KEYSTORE}/cacerts.p12" && - rm -f "${DESTDIR}${KEYSTORE}/cacerts.p12" - install -dm755 "${DESTDIR}${KEYSTORE}" - install -m644 "${TEMPDIR}/ssl/java/cacerts.p12" "${DESTDIR}${KEYSTORE}" + test -f "${DESTDIR}${KEYSTORE}.p12" && + rm -f "${DESTDIR}${KEYSTORE}.p12" + install -dm644 "${TEMPDIR}/ssl/java/cacerts.p12" "${DESTDIR}${KEYSTORE}.p12" fi # Import any certs in $LOCALDIR @@ -879,7 +878,7 @@ if test "x${DESTDIR}" == "x"; then "${TRUST}" extract --filter=certificates --format=openssl-directory \ --overwrite --comment "${CERTDIR}" \ && echo "Done!" || echo "Failed!!!" - echo -n "Extracting GNUTLS sever auth certificates to ${CABUNDLE}..." + echo -n "Extracting GNUTLS server auth certificates to ${CABUNDLE}..." "${TRUST}" extract --filter=ca-anchors --format=pem-bundle \ --purpose server-auth --overwrite --comment "${CABUNDLE}" \ && echo "Done!" || echo "Failed!!!"