aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/tests/interop/interop_client.php
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2015-10-23 10:24:32 -0700
committerGravatar Stanley Cheung <stanleycheung@google.com>2015-10-23 10:24:32 -0700
commitd94f9260b89ff6168e48f2cce38c93169491366d (patch)
tree4c2b955037a065ee5233d6b20124e34f5258e3d7 /src/php/tests/interop/interop_client.php
parent97e399a38c683e53a8b102dd776a08f6ed9cb81a (diff)
php: remove ssl_cert_file env var
Diffstat (limited to 'src/php/tests/interop/interop_client.php')
-rwxr-xr-xsrc/php/tests/interop/interop_client.php7
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 5965097e18..03ce2ac700 100755
--- a/src/php/tests/interop/interop_client.php
+++ b/src/php/tests/interop/interop_client.php
@@ -391,12 +391,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;
}