Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions scripts/preBuildCertificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
import re
import string
import sys
from asn1crypto.x509 import Certificate
try:
from asn1crypto.x509 import Certificate
except ImportError:
env.Execute(
env.VerboseAction(
'$PYTHONEXE -m pip install "asn1crypto" ',
"ASN1 crypto import failed, installing.",
)
)
import hashlib

from subprocess import Popen, PIPE, call, check_output
Expand Down Expand Up @@ -182,4 +190,4 @@ def preBuildCertificatesFun(domains):
f.write(", ")
f.write("};\n\n#endif" + "\n")

f.close()
f.close()