基于python3的http.server支持基本的auth和http s;它是一个带有python3面部毛发的simplehttpserver!
python3HTTPSAuthServer的Python项目详细描述
python3htpsauthserver
这是SimpleHttpServer,有着Python般的面部毛发! 支持:
- http basic auth[用户名:pass]
- https加密
- 自行生成自签名证书,或者您可以自己携带
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]