新增获取网页证书信息关键字

This commit is contained in:
byb11
2021-03-26 15:09:50 +08:00
parent 9a0aa624ad
commit b9b67b16b9

View File

@@ -1,5 +1,9 @@
import ssl, socket
# content of test_json_schema.py
from jsonschema import validators
#获取页面证书信息
def ttt():
hostname = 'vip.com'
@@ -13,3 +17,6 @@ def ttt():
issuer = dict(x[0] for x in cert['issuer'])
issued_by = issuer['commonName']
print(issued_by)