We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ffefe0f + d6b84ef commit b1031ddCopy full SHA for b1031dd
check.rb
@@ -66,14 +66,7 @@ def show_ssl_certs
66
puts "", "Below affect only Ruby net/http connections:"
67
puts
68
t = ENV['SSL_CERT_FILE'] || OpenSSL::X509::DEFAULT_CERT_FILE
69
- ssl_file = if File.exist? t
70
- "✅ exists #{t}"
71
- elsif RUBY_PLATFORM.end_with? 'linux'
72
- t = '/etc/ssl/certs/ca-certificates.crt'
73
- File.exist?(t) ? "✅ exists #{t}" : "❌ is missing #{t}"
74
- else
75
- "❌ is missing #{t}"
76
- end
+ ssl_file = File.exist?(t) ? "✅ exists #{t}" : "❌ is missing #{t}"
77
puts "SSL_CERT_FILE: %s" % ssl_file
78
79
t = ENV['SSL_CERT_DIR'] || OpenSSL::X509::DEFAULT_CERT_DIR
0 commit comments