lib/ftw/agent/configuration.rb in ftw-0.0.40 vs lib/ftw/agent/configuration.rb in ftw-0.0.41

- old
+ new

@@ -7,10 +7,13 @@ REDIRECTION_LIMIT = "redirection-limit".freeze # SSL Trust Store SSL_TRUST_STORE = "ssl.trustdb".freeze + # SSL: Use the system's global default certs? + SSL_USE_DEFAULT_CERTS = "ssl.use-default-certs".freeze + private # Get the configuration hash def configuration return @configuration ||= default_configuration @@ -20,10 +23,11 @@ def default_configuration require "tmpdir" home = File.join(ENV.fetch("HOME", tmpdir), ".ftw") return { REDIRECTION_LIMIT => 20, - SSL_TRUST_STORE => File.join(home, "ssl-trust.db") + SSL_TRUST_STORE => File.join(home, "ssl-trust.db"), + SSL_USE_DEFAULT_CERTS => true, } end # def default_configuration def tmpdir return File.join(Dir.tmpdir, "ftw-#{Process.uid}")