From e035fa6edf658f2be483aece17a117435359929b Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Mon, 1 Sep 2014 18:20:13 +0200 Subject: .functions: Add SNI support in `getcertnames` --- .functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.functions') 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}" \ -- cgit v1.2.3