用python的OpenSSL写自签数字证书并用python中的tornado验证
python使用的是3.7的版本需要提前安装pip install pyopensslpip install tornado生成自签数字证书代码:from OpenSSL import cryptofrom OpenSSL import SSLfrom socket import gethostname#获取主机名from pprint import pprintfrom time import gmtimefrom time import mktimefrom os.path imp
原创
2020-11-28 16:32:03 ·
1090 阅读 ·
0 评论