diff options
author | Mathias Bynens <mathias@qiwi.be> | 2014-09-01 18:20:13 +0200 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2014-09-01 18:20:13 +0200 |
commit | e035fa6edf658f2be483aece17a117435359929b (patch) | |
tree | 83de5b72b9d2259aa1d746434a1ca5b7602b0f2c /.functions | |
parent | c0b127000f37823c52fa347cc395fde8f2c62ff0 (diff) | |
download | dotfiles-e035fa6edf658f2be483aece17a117435359929b.tar.gz dotfiles-e035fa6edf658f2be483aece17a117435359929b.tar.bz2 dotfiles-e035fa6edf658f2be483aece17a117435359929b.zip |
.functions: Add SNI support in `getcertnames`
Diffstat (limited to '.functions')
-rw-r--r-- | .functions | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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}" \ |