Skip to content

mwendwa99/pesapal-career

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Problem #1: Web server with secure communication

Description

  • 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 and Content-Length.
  • Server certificates are generated with OpenSSL.
  • The certificate created here is a self-signed certificate.

Techonolgies used:

Installation

  1. Clone the repository: git clone
  2. Cd into the directory
  3. initalize the project: yarn init
  4. install certificats and keys in directory: openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.cert

Usage

  1. Run the server: node server.js
  2. Open the browser and go to https://localhost:8443
  3. Type in your message and click on submit

License

MIT

About

secure HTTPS server with node express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published