aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ruby/pb/test/server.rb
diff options
context:
space:
mode:
Diffstat (limited to 'src/ruby/pb/test/server.rb')
-rwxr-xr-xsrc/ruby/pb/test/server.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ruby/pb/test/server.rb b/src/ruby/pb/test/server.rb
index e2e1ecbd62..a311bb76e6 100755
--- a/src/ruby/pb/test/server.rb
+++ b/src/ruby/pb/test/server.rb
@@ -64,7 +64,8 @@ end
# creates a ServerCredentials from the test certificates.
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
# produces a string of null chars (\0) of length l.