Skip to content

Commit

Permalink
SNI support in monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
valpackett committed Jun 7, 2016
1 parent a6e6c9e commit 93b4e85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions monitoring.rb
Expand Up @@ -5,6 +5,7 @@
module Freshcerts::Monitoring
def self.check_site(domain, port, wanted_hash)
OpenSSL::SSL::SSLSocket.new(TCPSocket.new domain, port).tap do |sock|
sock.hostname = domain
sock.sync_close = true
sock.connect
found_hash = Freshcerts.hash_cert sock.peer_cert
Expand Down

0 comments on commit 93b4e85

Please sign in to comment.