Skip to main content

HTTPS server with Basic authentication and client certificate authentication.

Project description



HTTPS server with Basic authentication and client certificate authentication.
Supports both Python2 and Python3, IPv4 and IPv6.


$ pip install SimpleHTTPSAuthServer


# 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

# Enable IPv6.
$ python -m SimpleHTTPSAuthServer -b ::

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for SimpleHTTPSAuthServer, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size SimpleHTTPSAuthServer-1.1.0-py3-none-any.whl (4.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size SimpleHTTPSAuthServer-1.1.0.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page