- This is a simple web server with secure communication.
- It listens to port 8443 and accepts only connections from localhost.
- This server is based on Node.js.
- It supports only GET and POST requests. The only headers supported are:
Content-Type
andContent-Length
. - Server certificates are generated with OpenSSL.
- The certificate created here is a self-signed certificate.
- Clone the repository:
git clone
- Cd into the directory
- initalize the project:
yarn init
- install certificats and keys in directory:
openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.cert
- Run the server:
node server.js
- Open the browser and go to https://localhost:8443
- Type in your message and click on submit
MIT