独立于平台访问系统证书存储
certstore的Python项目详细描述
独立于平台访问系统证书存储。
安装
certstore在pypi上可用。:
$ pip install certstore
用法
访问和使用系统证书捆绑包:
>>> import certstore >>> certstore.ca_bundle '/path/to/system/store/ca.pem' >>> import requests >>> requests.get('https://some.domain.com', verify=certstore.ca_bundle)