We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d32176d + 4c72715 commit 4c7339cCopy full SHA for 4c7339c
lib/code_climate/test_reporter/client.rb
@@ -79,7 +79,7 @@ def http_client(uri)
79
if uri.scheme == "https"
80
http.use_ssl = true
81
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
82
- http.ca_file = File.expand_path("../../../../config/cacert.pem", __FILE__)
+ http.ca_file = ca_file
83
http.verify_depth = 5
84
end
85
http.open_timeout = CodeClimate::TestReporter.configuration.timeout
@@ -95,6 +95,10 @@ def compress(str)
95
sio.string
96
97
98
+ def ca_file
99
+ ENV["SSL_CERT_FILE"] ||
100
+ File.expand_path("../../../../config/cacert.pem", __FILE__)
101
+ end
102
103
104
0 commit comments