MITM 代理的简单证书颁发机构
项目描述
CLI 使用示例
certauth还包括一个用于证书创建和管理的简单命令行 API。
usage: certauth [-h] [-c CERTNAME] [-n HOSTNAME] [-d CERTS_DIR] [-f] [-w]
root_ca_cert
positional arguments:
root_ca_cert Path to existing or new root CA file
optional arguments:
-h, --help show this help message and exit
-c CERTNAME, --certname CERTNAME
Name for root certificate
-n HOSTNAME, --hostname HOSTNAME
Hostname certificate to create
-d CERTS_DIR, --certs-dir CERTS_DIR
Directory for host certificates
-f, --force Overwrite certificates if they already exist
-w, --wildcard_cert add wildcard SAN to host: *.<host>, <host>
要创建新的根 CA 证书:
certauth myrootca.pem --certname "我的测试 CA"
要在目录certs_dir中创建使用 CA 证书签名的主机证书:
certauth myrootca.pem --hostname "example.com" -d ./certs_dir
如果根证书不存在,则会自动创建。如果certs_dir不存在,它也会自动创建。
example.com的证书将创建为certs_dir/example.com.pem。如果它已经存在,则不会被覆盖(除非使用-f选项)。
-w选项可用于创建具有主题备用名称 (SAN) 的通配符证书,例如example.com和* .example.com
历史
CertificateAuthority 功能从最初在Nadeem Douba的中间人代理pymiproxy中发现的证书管理演变而来。
Internet Archive的Noah Levitt在warcprox中也对其进行了扩展。
CA 功能也在pywb中被重用,并最终被分解到这个单独的包中以实现模块化。
wsgiprox现在也使用它来为任何 WSGI 应用程序提供通用的 HTTPS 代理包装器。
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
certauth-1.3.0.tar.gz
(10.8 kB
查看哈希)
内置分布
certauth-1.3.0-py2.py3-none-any.whl
(10.6 kB
查看哈希)