Skip to content

Commit

Permalink
feat: Added '@cocreate/acme' for dynamic ssl management
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Dec 29, 2023
1 parent 2e13dcb commit f01831b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ class SocketServer extends EventEmitter {
socket.host = socket.origin;
}

if (!await self.acme.checkCertificate(socket.host, organization_id))
return socket.send(JSON.stringify({ method: 'Access Denied', error: 'Host not whitelisted' }))

// TODO: handle ssl validation here and creation here
if (!organization || organization && organization.status !== false) {
let data = {
socket,
Expand Down

0 comments on commit f01831b

Please sign in to comment.