Skip to content

Commit

Permalink
Certbot certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
programarivm committed Jan 25, 2024
1 parent 907c521 commit 6e0a8a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cli/prod.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
$server = new Server("0.0.0.0:{$_ENV['WSS_PORT']}", $loop);

$secureServer = new SecureServer($server, $loop, [
'local_cert' => __DIR__ . '/../ssl/certificate.crt',
'local_pk' => __DIR__ . '/../ssl/private.key',
'local_cert' => __DIR__ . '/../ssl/fullchain.pem',
'local_pk' => __DIR__ . '/../ssl/privkey.pem',
'verify_peer' => false,
]);

Expand Down
4 changes: 2 additions & 2 deletions cli/staging.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
$server = new Server("0.0.0.0:{$_ENV['WSS_PORT']}", $loop);

$secureServer = new SecureServer($server, $loop, [
'local_cert' => __DIR__ . '/../ssl/certificate.crt',
'local_pk' => __DIR__ . '/../ssl/private.key',
'local_cert' => __DIR__ . '/../ssl/fullchain.pem',
'local_pk' => __DIR__ . '/../ssl/privkey.pem',
'verify_peer' => false,
]);

Expand Down
4 changes: 2 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ php cli/dev.php

### Staging

> Before starting the secure WebSocket server for the first time, make sure to have created the `certificate.crt` and `private.key` files into the `ssl` folder.
> Before starting the secure WebSocket server for the first time, make sure to have created the `fullchain.pem` and `privkey.pem` files into the `ssl` folder.
Run the staging secure WebSocket server if you don't want to check the website's origin.

Expand All @@ -72,7 +72,7 @@ This will allow any origin to send a request to it.

### Production

> Before starting the secure WebSocket server for the first time, make sure to have created the `certificate.crt` and `private.key` files into the `ssl` folder.
> Before starting the secure WebSocket server for the first time, make sure to have created the `fullchain.pem` and `privkey.pem` files into the `ssl` folder.
Run the secure WebSocket server to check the website's origin as defined in the `WSS_ALLOWED` variable in the `.env.example` file.

Expand Down

0 comments on commit 6e0a8a6

Please sign in to comment.