Skip to content

Commit 79a29c0

Browse files
committed
allow self-signed certificates
1 parent b900d32 commit 79a29c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

solid/lib/Notifications/SolidPubSub.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ public function send($path, $type) {
1515
$pubsub = str_replace(["https://", "http://"], "wss://", $this->pubsub);
1616

1717
$client = new Client($pubsub);
18+
$client->setContext(['ssl' => [
19+
'verify_peer' => false, // if false, accept SSL handshake without client certificate
20+
'verify_peer_name' => false,
21+
'allow_self_signed' => true,
22+
]]);
1823
$client->addHeader("Sec-WebSocket-Protocol", "solid-0.1");
1924
try {
2025
$client->text("pub $path\n");

0 commit comments

Comments
 (0)