HTTPS server with Basic authentication and client certificate authentication.
Project description
SimpleHTTPSAuthServer
HTTPS server with Basic authentication and client certificate authentication.
Supports both Python2 and Python3, IPv4 and IPv6.
Installation
$ pip install SimpleHTTPSAuthServer
Usage
# Serve HTTP.
$ python -m SimpleHTTPSAuthServer
# Serve HTTPS.
$ python -m SimpleHTTPSAuthServer -s /path/to/server/cert.pem
# Serve HTTPS and enable client certificate authentication.
$ python -m SimpleHTTPSAuthServer -s /path/to/server/cert.pem -c /path/to/CA/cert.pem
# Enable Basic authentication.
# Create user 'foo' with password 'spam', and user 'bar' with password 'ham'.
$ python -m SimpleHTTPSAuthServer -u foo bar -p spam ham
# Environment variables are also available.
$ export SIMPLE_HTTPS_USERS='foo bar'
$ export SIMPLE_HTTPS_PASSWORDS='spam ham'
# Enable multi-thread.
$ python -m SimpleHTTPSAuthServer -t
# Specify listening port (default: 8000).
$ python -m SimpleHTTPSAuthServer 10080
# Bind to localhost only.
$ python -m SimpleHTTPSAuthServer -b 127.0.0.1
# Enable IPv6.
$ python -m SimpleHTTPSAuthServer -b ::
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for SimpleHTTPSAuthServer-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff34354cf8fb8b588f37c7b5badfb6a73fe330fc5d255611f5b99116c5859289 |
|
MD5 | fd7263c8e463bb8d11502c5859ee5086 |
|
BLAKE2b-256 | 5f083f12e5f5ca0ddb3cb76862ad1cd146d1ef96fd8643f0b0510fe906ff5176 |
Close
Hashes for SimpleHTTPSAuthServer-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97bed3ad9101a26c168f78782b3639536671e7ee2b902aee33788b7e07f2e906 |
|
MD5 | dd822492c2aa52b90225fd1eec7d0f4b |
|
BLAKE2b-256 | 317e87ea2ad3d6301e10053583768c3c18f8778817b738fa38f7baedd3b35f58 |