Commit 8bf86754 authored by Jonathan Michalon's avatar Jonathan Michalon
Browse files

Activate SNI for HTTPS checks

This fixes a strange "Error on receive" issue on some check_http versions.
Enabling SNI we now also check the connection using the certificate of the
configured vhost (and not the default one).
parent 844071b9
......@@ -203,7 +203,7 @@ class CheckHTTP(Check):
class CheckHTTPS(CheckHTTP):
def check(self):
command = self.build_command() + ['--ssl']
command = self.build_command() + ['--ssl', '--sni']
return self.exec_with_timeout(command, timeout=self.timeout + 1)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment