Fix kill, makecerts, summary
This commit is contained in:
parent
b8ad9c1c03
commit
c311c4626b
3 changed files with 64 additions and 35 deletions
21
makecerts.py
21
makecerts.py
|
|
@ -1,16 +1,29 @@
|
|||
# Get certificates from domains and make a similar chain.
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import OpenSSL
|
||||
import ssl
|
||||
#import asn1
|
||||
|
||||
CERTS_DIR = "/dev/shm/exp/certs/"
|
||||
ALGS = ["prime256v1", "secp384r1", "rsa2048", "rsa3072", "rsa4096"]
|
||||
ALGS = [
|
||||
"prime256v1",
|
||||
"secp384r1",
|
||||
"rsa2048",
|
||||
"rsa3072",
|
||||
"rsa4096"
|
||||
]
|
||||
DOMAINS = [
|
||||
#"txmn.tk",
|
||||
#"wikipedia.org",
|
||||
"youtube.com"
|
||||
"youtube.com",
|
||||
"rr2---sn-gxo5uxg-jqbl.googlevideo.com",# main domain googlevideo.com returns certificate for google.com only
|
||||
"googleusercontent.com",
|
||||
"gstatic.com",
|
||||
"googlesyndication.com",
|
||||
"googleapis.com",
|
||||
"i.ytimg.com",
|
||||
"ad.doubleclick.net",
|
||||
]
|
||||
|
||||
def sh(cmds):
|
||||
|
|
@ -169,6 +182,8 @@ def fetch_cas():
|
|||
|
||||
if __name__ == "__main__":
|
||||
os.makedirs(f"{CERTS_DIR}realistic", exist_ok=True)
|
||||
for alg in ALGS:
|
||||
shutil.copy2(f"{CERTS_DIR}{alg}/ca.crt", f"{CERTS_DIR}realistic/ca-{alg}.crt")
|
||||
cas = fetch_cas()
|
||||
for domain in DOMAINS:
|
||||
cert = get_server_cert(domain)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue