Skip to content

Instantly share code, notes, and snippets.

@nom3ad
Created February 10, 2022 06:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nom3ad/114dc57f1e5b9797316d47e11e4e8322 to your computer and use it in GitHub Desktop.
Save nom3ad/114dc57f1e5b9797316d47e11e4e8322 to your computer and use it in GitHub Desktop.
easy https server
mkdir /tmp/www
cd /tmp/www; touch "$(hostname).txt"
sudo nohup python -m SimpleHTTPServer 80 > simplehttpserver.out &
#Start an HTTPS listener with some debug responses (I wonder if you can pipe to the HTTP server)
openssl req -x509 -newkey rsa:4096 -nodes -sha256 -keyout /tmp/key.pem -out /tmp/cert.pem -days 365 #Create self signed key. Only need this once and it will ask a few questions
sudo nohup openssl s_server -key /tmp/key.pem -cert /tmp/cert.pem -accept 443 -cipher kRSA+RSA -www > openssl.out &
@nom3ad
Copy link
Author

nom3ad commented Feb 10, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment