You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,20 +231,20 @@ This class extends StreamSocket and adds support for persistent connections. Upo
231
231
232
232
## :lock: SSL
233
233
234
+
Connection secured with SSL is available only with connection classes `StreamSocket` and `PStreamSocket`.
235
+
234
236
### Neo4j Aura
235
237
236
-
Connecting to Aura requires encryption which is provided with SSL. To connect to Aura you have to use `StreamSocket`connection class and enable SSL.
238
+
Connecting to Aura requires encrypted connection by default. To connect to Aura you have to use connection class with SSL support and enable SSL.
237
239
238
240
```php
239
241
$conn = new \Bolt\connection\StreamSocket('helloworld.databases.neo4j.io');
240
242
// enable SSL
241
-
$conn->setSslContextOptions([
242
-
'verify_peer' => true
243
-
]);
243
+
$conn->setSslContextOptions();
244
244
$bolt = new \Bolt\Bolt($conn);
245
245
```
246
246
247
-
https://www.php.net/manual/en/context.ssl.php
247
+
_For more informations about what argument can be passed to `setSslContextOptions` check out [php.net](https://www.php.net/manual/en/context.ssl.php) _
248
248
249
249
### Example on localhost database with self-signed certificate:
0 commit comments