From: Matthew Owens <matthew@owens.tech>
Date: Wed, 28 Apr 2021 15:12:40 +0000 (+0100)
Subject: updated certificate script for mutt
X-Git-Url: https://git.owens.tech/editable-focus.html/editable-focus.html/git?a=commitdiff_plain;h=40674ac3e6e370332d2c39a46303c9152532f4d5;p=scripts.git

updated certificate script for mutt
---

diff --git a/get_certs.sh b/get_certs.sh
index 23dd2de..15a763b 100755
--- a/get_certs.sh
+++ b/get_certs.sh
@@ -2,6 +2,6 @@
 
 SERVER=${1:-my.server.com}
 PORT=${2:-993}
-CERT_FOLDER=${3:-~/certs}
+CERT_FOLDER=${3:-~/.cert}
 
-openssl s_client -connect ${SERVER}:${PORT} -showcerts 2>&1 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'| sed -ne '1,/-END CERTIFICATE-/p' > ${CERT_FOLDER}/${SERVER}.pem
\ No newline at end of file
+openssl s_client -connect ${SERVER}:${PORT} -showcerts 2>&1 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p'| sed -ne '1,/-END CERTIFICATE-/p' > ${CERT_FOLDER}/${SERVER}.pem