From 5df024057c63776a80a4e0ab05616c4139e7f32c Mon Sep 17 00:00:00 2001 From: Adrien Dorsaz Date: Fri, 12 Jun 2020 23:48:36 +0200 Subject: [PATCH] acme_dns_tiny: fix regexp to retrieve Subject Alternative Names --- acme_dns_tiny.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acme_dns_tiny.py b/acme_dns_tiny.py index ff5bd06..094dc8d 100644 --- a/acme_dns_tiny.py +++ b/acme_dns_tiny.py @@ -91,7 +91,7 @@ def get_crt(config, log=LOGGER): if common_name is not None: domains.add(common_name.group(1)) subject_alt_names = re.search( - r"X509v3 Subject Alternative Name: (?:critical)?\s+?([^\r\n]+)\r?\n", + r"X509v3 Subject Alternative Name: (?:critical)?\s+([^\r\n]+)\r?\n", csr, re.MULTILINE) if subject_alt_names is not None: for san in subject_alt_names.group(1).split(", "): -- GitLab