Skip to content
This repository was archived by the owner on Jan 31, 2024. It is now read-only.

Commit 96c7bec

Browse files
brianvansJasonStoltz
authored andcommitted
Update the path to the ca bundle (#14)
In 5251490, some files got moved around and this relative path didn't get updated to reflect that, causing a regression with ssl-enabled endpoints
1 parent f90b72f commit 96c7bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elastic/enterprise-search/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def request(method, path, params = {})
5050
# is Charles, which uses a self-signed certificate in order to inspect https traffic. This will
5151
# not be part of this client's public API, this is more of a development enablement option
5252
http.verify_mode = ENV['st_ssl_verify_none'] == 'true' ? OpenSSL::SSL::VERIFY_NONE : OpenSSL::SSL::VERIFY_PEER
53-
http.ca_file = File.join(File.dirname(__FILE__), '..', 'data', 'ca-bundle.crt')
53+
http.ca_file = File.realpath(File.join(File.dirname(__FILE__), '..', '..', 'data', 'ca-bundle.crt'))
5454
http.ssl_timeout = open_timeout
5555
end
5656

0 commit comments

Comments
 (0)