diff options
author | Stanley Cheung <stanleycheung@google.com> | 2015-10-23 10:24:32 -0700 |
---|---|---|
committer | Stanley Cheung <stanleycheung@google.com> | 2015-10-23 11:03:52 -0700 |
commit | af93a8fddb7f61450e5a08df688d8bb0eb8a86a8 (patch) | |
tree | ad1055d53dac7107b84657274f2d41ea816f4fc3 /src/php/tests/interop | |
parent | b73cbc27091090d1213485cf5dd2ad097b2ebd20 (diff) |
php: remove ssl_cert_file env var
Diffstat (limited to 'src/php/tests/interop')
-rwxr-xr-x | src/php/tests/interop/interop_client.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/php/tests/interop/interop_client.php b/src/php/tests/interop/interop_client.php index 6670ef3ab9..3d14442954 100755 --- a/src/php/tests/interop/interop_client.php +++ b/src/php/tests/interop/interop_client.php @@ -392,12 +392,11 @@ $opts = []; if ($use_tls) { if ($use_test_ca) { - $ssl_cert_file = dirname(__FILE__) . '/../data/ca.pem'; + $ssl_credentials = Grpc\Credentials::createSsl( + file_get_contents(dirname(__FILE__) . '/../data/ca.pem')); } else { - $ssl_cert_file = getenv('SSL_CERT_FILE'); + $ssl_credentials = Grpc\Credentials::createSsl(); } - $ssl_credentials = Grpc\Credentials::createSsl( - file_get_contents($ssl_cert_file)); $opts['credentials'] = $ssl_credentials; $opts['grpc.ssl_target_name_override'] = $host_override; } |