From 59e82bba2befb6ef5049ea9ae4e876327f3da158 Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Sat, 19 Nov 2016 14:16:20 +0000 Subject: Added option to disable ssl verification checks for http source --- lib/oxidized/source/http.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/oxidized/source') diff --git a/lib/oxidized/source/http.rb b/lib/oxidized/source/http.rb index dc1c0b7..6f16aee 100644 --- a/lib/oxidized/source/http.rb +++ b/lib/oxidized/source/http.rb @@ -20,6 +20,7 @@ class HTTP < Source uri = URI.parse(@cfg.url) http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true if uri.scheme == 'https' + http.verify_mode = OpenSSL::SSL::VERIFY_NONE if uri.no_check_certificate == true # map headers headers = {} -- cgit v1.2.1 From 44574426d076c15f67ee9738b1c8c86d71910cce Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Sat, 19 Nov 2016 15:56:52 +0000 Subject: Updated config options --- lib/oxidized/source/http.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/oxidized/source') diff --git a/lib/oxidized/source/http.rb b/lib/oxidized/source/http.rb index 6f16aee..4fd388b 100644 --- a/lib/oxidized/source/http.rb +++ b/lib/oxidized/source/http.rb @@ -20,7 +20,7 @@ class HTTP < Source uri = URI.parse(@cfg.url) http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true if uri.scheme == 'https' - http.verify_mode = OpenSSL::SSL::VERIFY_NONE if uri.no_check_certificate == true + http.verify_mode = OpenSSL::SSL::VERIFY_NONE unless @cfg.secure # map headers headers = {} -- cgit v1.2.1