Skip to content

Instantly share code, notes, and snippets.

View mahfuzphp's full-sized avatar

mahfuz mahfuzphp

  • softwindtech
  • dhaka
View GitHub Profile
@mahfuzphp
mahfuzphp / static_server.js
Created March 20, 2022 10:55 — forked from jianwu/static_server.js
Node.JS static file web server, also provides CORSProxy, Http/Https proxy function. Put it in your path to fire up servers in any directory, takes an optional port argument. If provide second https port argument, it will also start https. For https to work, need to put key and cert file in the folder.
#!/usr/bin/env node
const { argv } = require('process');
/**
Static http server implemented with NodeJS.
Features:
1. No external dependencies
@mahfuzphp
mahfuzphp / self-signed-certificate-with-custom-ca.md
Created December 9, 2020 15:29 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096