aboutsummaryrefslogtreecommitdiffstats
path: root/.functions
diff options
context:
space:
mode:
Diffstat (limited to '.functions')
-rw-r--r--.functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/.functions b/.functions
index 3f3ac9c..006ffb1 100644
--- a/.functions
+++ b/.functions
@@ -176,7 +176,7 @@ function getcertnames() {
echo ""; # newline
local tmp=$(echo -e "GET / HTTP/1.0\nEOT" \
- | openssl s_client -connect "${domain}:443" 2>&1);
+ | openssl s_client -connect "${domain}:443" -servername "${domain}" 2>&1);
if [[ "${tmp}" = *"-----BEGIN CERTIFICATE-----"* ]]; then
local certText=$(echo "${tmp}" \