Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/syanide-/python3httpsauthserver

Python3-based http.server supporting Basic AUTH and HTTPS; it's SimpleHTTPServer with python3 facial hair!
https://github.com/syanide-/python3httpsauthserver

auth https python3 python3httpsauthserver simplehttpauthserver simplehttpserver

Last synced: 2 days ago
JSON representation

Python3-based http.server supporting Basic AUTH and HTTPS; it's SimpleHTTPServer with python3 facial hair!

Awesome Lists containing this project

README

        

# python3HTTPSAuthServer
It's SimpleHTTPServer, with python3 facial hair!
Supports:
- HTTP Basic AUTH [username:pass]
- HTTPS encryption
- Self-generates self-signed certificate, or you can bring your own

`usage: python3HTTPSAuthServer.py [-h] [-i IP] [-p PORT] [-a AUTH] [-s] [-c CERT] [-k PRIVATEKEY]`

`Python HTTPS Auth Server`

`optional arguments:`
`-h, --help show this help message and exit`
`-i IP, --ip IP Bind IP (Default all interfaces 0.0.0.0)`
`-p PORT, --port PORT Bind port, default 8443`
`-a AUTH, --auth AUTH HTTP BASIC auth [username:password]`
`-s, --https Use HTTPS`
`-c CERT, --cert CERT If you brought your own CERT, then by all means... [fullpath]`
`-k PRIVATEKEY, --privatekey PRIVATEKEY If you brought your own PRIVATE_KEY, then by all means... [fullpath]`


### Install using pip3:
`sudo python3 -m pip install python3HTTPSAuthServer`

### Run the familiar way
`python3 -m python3HTTPSAuthServer`

### Get Help
`python3 -m python3HTTPSAuthServer -h`

### HTTPS via JIT self-signed certificate and HTTP Basic AUTH, port 443:
`python3 -m python3HTTPSAuthServer -https -auth 'benzo:qu4rantyne!' -i 192.168.56.110 -p 443`