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
commita2a6a1efe9503cdeece633004e2af1d1ab286127 (patch)
tree83d6404c29e8cdf9cba95f5dae4fe2eb17d44c31 /lib/custodian/protocoltest/http.rb
parent3d31f157f25c1296a335196c1fdd357fa8a2a9be (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