aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.IntegrationTesting/InteropClient.cs
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2015-10-22 13:28:22 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2015-10-22 13:28:22 -0700
commitbeffc779bb1526c2177c19132415e60109c9e3da (patch)
tree2d940ae2235d3fae31a610ee68b2fdabf56e753a /src/csharp/Grpc.IntegrationTesting/InteropClient.cs
parentdef77a5235b389af3e76fe7fc8699d70f426f957 (diff)
stop using SSL_CERT_FILE env for C# interop tests
Diffstat (limited to 'src/csharp/Grpc.IntegrationTesting/InteropClient.cs')
-rw-r--r--src/csharp/Grpc.IntegrationTesting/InteropClient.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/csharp/Grpc.IntegrationTesting/InteropClient.cs b/src/csharp/Grpc.IntegrationTesting/InteropClient.cs
index 030a098cad..5eec11abf7 100644
--- a/src/csharp/Grpc.IntegrationTesting/InteropClient.cs
+++ b/src/csharp/Grpc.IntegrationTesting/InteropClient.cs
@@ -137,7 +137,11 @@ namespace Grpc.IntegrationTesting
private async Task<ChannelCredentials> CreateCredentialsAsync()
{
- var credentials = options.UseTls.Value ? TestCredentials.CreateTestClientCredentials(options.UseTestCa.Value) : ChannelCredentials.Insecure;
+ var credentials = ChannelCredentials.Insecure;
+ if (options.UseTls.Value)
+ {
+ credentials = options.UseTestCa.Value ? TestCredentials.CreateSslCredentials() : new SslCredentials();
+ }
if (options.TestCase == "jwt_token_creds")
{