aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2014-09-01 18:20:13 +0200
committerMathias Bynens <mathias@qiwi.be>2014-09-01 18:20:13 +0200
commite035fa6edf658f2be483aece17a117435359929b (patch)
tree83de5b72b9d2259aa1d746434a1ca5b7602b0f2c
parentc0b127000f37823c52fa347cc395fde8f2c62ff0 (diff)
downloaddotfiles-e035fa6edf658f2be483aece17a117435359929b.tar.gz
dotfiles-e035fa6edf658f2be483aece17a117435359929b.tar.bz2
dotfiles-e035fa6edf658f2be483aece17a117435359929b.zip
.functions: Add SNI support in `getcertnames`
-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}" \