mirror of https://github.com/grpc/grpc.io.git
PHP: Add Guide "With server authentication SSL/TLS" (#850)
This commit is contained in:
parent
20fffd5f91
commit
7ad5bc5220
|
|
@ -642,6 +642,14 @@ $client = new helloworld\GreeterClient('localhost:50051', [
|
|||
]);
|
||||
```
|
||||
|
||||
##### With server authentication SSL/TLS
|
||||
|
||||
```php
|
||||
$client = new helloworld\GreeterClient('myservice.example.com', [
|
||||
'credentials' => Grpc\ChannelCredentials::createSsl(file_get_contents('roots.pem')),
|
||||
]);
|
||||
```
|
||||
|
||||
##### Authenticate with Google
|
||||
|
||||
```php
|
||||
|
|
|
|||
Loading…
Reference in New Issue