Skip to content

atsolberg/https-wss-server-to-server-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https-wss-server-to-server-example

Repo to proove two web servers can communicate over http and websocket when both are running SSL using the same certificate files.

image

Setup

The certificate files in ./ssl_certs were created for localhost using mkcert.
To use them you just need to follow the steps in that README.md to install mkcert as a certificate authority on your machine locally. It's bascially just brew install mkcert and then mkcert -install.

Or you can drop in your own certificate files in ./ssl_certs

Running

In two separate terminals, run node app-server/server.js to start the app server and node dev-server/server.js to run the dev server.

Then visit https://localhost:8001 and you should see sending ping,pong for the https requests and wss message: "wss ping" for the websocket messages.

About

Repo to proove two web servers can communicate over http and websocket when both are running SSL using the same certificate files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors