Skip to content

Commit

Permalink
PHP: Add Guide "With server authentication SSL/TLS" (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
howyi committed Sep 15, 2021
1 parent 20fffd5 commit 7ad5bc5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions content/en/docs/guides/auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7ad5bc5

Please sign in to comment.