This commit is contained in:
ed 2023-04-24 06:09:44 +00:00
parent 6f244d4335
commit d88889d3fc
2 changed files with 4 additions and 4 deletions

View file

@ -279,8 +279,8 @@ def ensure_cert(al: argparse.Namespace) -> None:
with open(al.cert, "rb") as f: with open(al.cert, "rb") as f:
buf = f.read() buf = f.read()
o1 = buf.find(b"-BEGIN PRIVATE KEY-") o1 = buf.find(b" PRIVATE KEY-")
o2 = buf.find(b"-BEGIN CERTIFICATE-") o2 = buf.find(b" CERTIFICATE-")
m = "unsupported certificate format: " m = "unsupported certificate format: "
if o1 < 0: if o1 < 0:
raise Exception(m + "no private key inside pem") raise Exception(m + "no private key inside pem")

View file

@ -1,8 +1,8 @@
# coding: utf-8 # coding: utf-8
VERSION = (1, 6, 13) VERSION = (1, 6, 14)
CODENAME = "cors k" CODENAME = "cors k"
BUILD_DT = (2023, 4, 23) BUILD_DT = (2023, 4, 24)
S_VERSION = ".".join(map(str, VERSION)) S_VERSION = ".".join(map(str, VERSION))
S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT) S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT)