GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — NodeServer/native-https at master · HowProgrammingWorks/NodeServer

Expand file tree

/

native-https

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

native-https

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
cert
cert
 
 
README.md
README.md
 
 
server.js
server.js
 
 

README.md

Outline

Start HTTP server

With self-signed certificate (for testing)

  • Generate certificates, run: ./cert/generate.sh
  • Start server: node server.js
  • Open in browser: https://127.0.0.1:8000/

With certbot (for production)

  • Let's Encrypt is a free certificate authority: https://letsencrypt.org/
  • Use Certbot (free tool for automatically generatinging Let’s Encrypt certificates to enable HTTPS): https://certbot.eff.org/
    • Install: dnf -y install certbot
  • Generate certificate: certbot certonly --standalone -d www.domain.com -d domain.com -m [email protected] --agree-tos --no-eff-email
  • Copy certificate: cp /etc/letsencrypt/live/domain.com/fullchain.pem ./cert/cert.pem
  • Copy private key: cp /etc/letsencrypt/live/domain.com/privkey.pem ./cert/key.pem
  • Or use your web server for challenge exchange: certbot certonly --webroot -w ./ -d domain.com -m [email protected] --agree-tos --no-eff-email
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.