From 576378b36f473a544c6014080146332ac2d271db Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sat, 24 Nov 2012 09:53:25 +0000 Subject: Alert if SSL-validation fails. --- lib/custodian/protocoltest/http.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/custodian') diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb index 475b335..11f4bff 100644 --- a/lib/custodian/protocoltest/http.rb +++ b/lib/custodian/protocoltest/http.rb @@ -129,6 +129,9 @@ module Custodian c.perform @status = c.response_code @content = c.body_str + rescue Curl::Err::SSLCACertificateError => x + @error = "SSL-Validation error" + return false rescue Curl::Err::TimeoutError @error = "Timed out fetching page." return false -- cgit v1.2.1