Use SNI for SSL certificate monitoring

This commit is contained in:
Matthew Noorenberghe
2013-05-25 23:41:13 -07:00
parent 12895a951e
commit bbb6478a27

View File

@@ -13,6 +13,7 @@ if ($_[0]->{'url'}) {
# Run the openssl command to connect
local $cmd = "openssl s_client -host ".quotemeta($host).
" -servername ".quotemeta($host).
" -port ".quotemeta($port)." </dev/null 2>&1";
local $out = &backquote_with_timeout($cmd, 10);
if ($?) {