Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit 8273f6c

Browse files
author
dickeyxxx
committed
show warning if SSL_CERT_FILE is set and there is a certificate error
1 parent cdfd5ec commit 8273f6c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/heroku/client.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ def read_logs(app_name, options=[])
507507
http.ca_file = local_ca_file
508508
http.verify_callback = lambda do |preverify_ok, ssl_context|
509509
if (!preverify_ok) || ssl_context.error != 0
510+
$stderr.puts "SSL_CERT_FILE is set. This is likely causing SSL verification to fail." if ENV['SSL_CERT_FILE']
510511
$stderr.puts "HTTPS_PROXY is set. This is likely causing SSL verification to fail." if ENV['HTTPS_PROXY']
511512
error "WARNING: Unable to verify SSL certificate for #{host}\nTo disable SSL verification, run with HEROKU_SSL_VERIFY=disable"
512513
end

0 commit comments

Comments
 (0)