updated certificate script for mutt
authorMatthew Owens <matthew@owens.tech>
Wed, 28 Apr 2021 15:12:40 +0000 (16:12 +0100)
committerMatthew Owens <matthew@owens.tech>
Wed, 28 Apr 2021 15:12:40 +0000 (16:12 +0100)
get_certs.sh

index 23dd2de..15a763b 100755 (executable)
@@ -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