lib/conjur/api.rb in conjur-api-4.13.0 vs lib/conjur/api.rb in conjur-api-4.14.0
- old
+ new
@@ -45,10 +45,22 @@
class RestClient::Resource
include Conjur::Escape
include Conjur::LogSource
include Conjur::Cast
extend Conjur::BuildFromResponse
+
+ alias_method :initialize_without_defaults, :initialize
+
+ def initialize url, options = nil, &block
+ initialize_without_defaults url, default_options.merge(options || {}), &block
+ end
+
+ def default_options
+ {
+ ssl_cert_store: OpenSSL::SSL::SSLContext::DEFAULT_CERT_STORE
+ }
+ end
def core_conjur_account
Conjur::Core::API.conjur_account
end
@@ -70,6 +82,6 @@
end
def username
options[:user] || options[:username]
end
-end
\ No newline at end of file
+end