summaryrefslogtreecommitdiff
path: root/lib/custodian/protocoltest/http.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-24 09:53:25 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-24 09:53:25 +0000
commit576378b36f473a544c6014080146332ac2d271db (patch)
tree83d6404c29e8cdf9cba95f5dae4fe2eb17d44c31 /lib/custodian/protocoltest/http.rb
parent9cc38d1a98b462365a096a28762bead9166dcf18 (diff)
Alert if SSL-validation fails.
Diffstat (limited to 'lib/custodian/protocoltest/http.rb')
-rw-r--r--lib/custodian/protocoltest/http.rb3
1 files changed, 3 insertions, 0 deletions
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