diff options
author | 2015-12-10 16:41:11 -0800 | |
---|---|---|
committer | 2015-12-10 17:09:06 -0800 | |
commit | a6b2c4ce468f06094810252cfa7f136d398ddd9e (patch) | |
tree | 4f6d9caf605e3e103185992da362965c8c489ce8 /src/ruby/pb/test | |
parent | d574049b8b1b0c7f19abb549612968cf89372c42 (diff) |
Get rid of SSL_CERT_FILE env entirely
Diffstat (limited to 'src/ruby/pb/test')
-rwxr-xr-x | src/ruby/pb/test/client.rb | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/ruby/pb/test/client.rb b/src/ruby/pb/test/client.rb index 329e2dc98b..6eb727ccbe 100755 --- a/src/ruby/pb/test/client.rb +++ b/src/ruby/pb/test/client.rb @@ -93,13 +93,6 @@ def load_test_certs files.map { |f| File.open(File.join(data_dir, f)).read } end -# loads the certificates used to access the test server securely. -def load_prod_cert - fail 'could not find a production cert' if ENV['SSL_CERT_FILE'].nil? - GRPC.logger.info("loading prod certs from #{ENV['SSL_CERT_FILE']}") - File.open(ENV['SSL_CERT_FILE']).read -end - # creates SSL Credentials from the test certificates. def test_creds certs = load_test_certs @@ -108,8 +101,7 @@ end # creates SSL Credentials from the production certificates. def prod_creds - cert_text = load_prod_cert - GRPC::Core::ChannelCredentials.new(cert_text) + GRPC::Core::ChannelCredentials.new() end # creates the SSL Credentials. |