diff options
author | Tim Emiola <temiola@google.com> | 2015-08-28 18:56:17 -0700 |
---|---|---|
committer | Tim Emiola <temiola@google.com> | 2015-08-31 09:40:32 -0700 |
commit | 73a540ae577b10e83b81d0cb60da816294a3a5bb (patch) | |
tree | 77e361e812345fda945477cdd2850a1bc48dd0da /src/ruby/bin | |
parent | 14d0a3c7968fb14a94fcaa1fe182e853ad361576 (diff) |
Update sites using ServerCredentials.new
Diffstat (limited to 'src/ruby/bin')
-rwxr-xr-x | src/ruby/bin/math_server.rb | 3 | ||||
-rwxr-xr-x | src/ruby/bin/noproto_server.rb | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ruby/bin/math_server.rb b/src/ruby/bin/math_server.rb index b41ccf6ce1..5e2b7e701d 100755 --- a/src/ruby/bin/math_server.rb +++ b/src/ruby/bin/math_server.rb @@ -155,7 +155,8 @@ end def test_server_creds certs = load_test_certs - GRPC::Core::ServerCredentials.new(nil, certs[1], certs[2]) + GRPC::Core::ServerCredentials.new( + nil, [{ private_key: certs[1], cert_chain: certs[2] }], false) end def main diff --git a/src/ruby/bin/noproto_server.rb b/src/ruby/bin/noproto_server.rb index 90baaf9a2e..72a5762040 100755 --- a/src/ruby/bin/noproto_server.rb +++ b/src/ruby/bin/noproto_server.rb @@ -77,7 +77,8 @@ end def test_server_creds certs = load_test_certs - GRPC::Core::ServerCredentials.new(nil, certs[1], certs[2]) + GRPC::Core::ServerCredentials.new( + nil, [{ private_key: certs[1], cert_chain: certs[2] }], false) end def main |