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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file SimpleHTTPSAuthServer-1.1.0.tar.gz.
File metadata
- Download URL: SimpleHTTPSAuthServer-1.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff34354cf8fb8b588f37c7b5badfb6a73fe330fc5d255611f5b99116c5859289
|
|
| MD5 |
fd7263c8e463bb8d11502c5859ee5086
|
|
| BLAKE2b-256 |
5f083f12e5f5ca0ddb3cb76862ad1cd146d1ef96fd8643f0b0510fe906ff5176
|
File details
Details for the file SimpleHTTPSAuthServer-1.1.0-py3-none-any.whl.
File metadata
- Download URL: SimpleHTTPSAuthServer-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97bed3ad9101a26c168f78782b3639536671e7ee2b902aee33788b7e07f2e906
|
|
| MD5 |
dd822492c2aa52b90225fd1eec7d0f4b
|
|
| BLAKE2b-256 |
317e87ea2ad3d6301e10053583768c3c18f8778817b738fa38f7baedd3b35f58
|