diff options
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | lib/oxidized/source/http.rb | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -506,7 +506,7 @@ source: X-Auth-Token: 'somerandomstring' ``` -You can also pass `no_check_certificate = true` if you want to disable ssl certificate verification: +You can also pass `secure: false` if you want to disable ssl certificate verification: ``` source: @@ -514,7 +514,7 @@ source: http: url: https://url/api scheme: https - no_check_certificate: true + secure: false ``` ### Output: File 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 = {} |