Commit f3a1682d authored by Adrien Dorsaz's avatar Adrien Dorsaz

acme_dns_tiny: Fix regexp update for new lines

parent 3d9e5150
Pipeline #138 passed with stage
in 2 minutes and 53 seconds
......@@ -109,7 +109,7 @@ def get_crt(config, log=LOGGER):
common_name = re.search(r"Subject:.*? CN=([^\s,;/]+)", csr)
if common_name is not None:
domains.add(common_name.group(1))
subject_alt_names = re.search(r"X509v3 Subject Alternative Name: \r?\n+ +([^\r\n]+)\r?\n+", csr, re.MULTILINE | re.DOTALL)
subject_alt_names = re.search(r"X509v3 Subject Alternative Name: \r?\n +([^\r\n]+)\r?\n", csr, re.MULTILINE | re.DOTALL)
if subject_alt_names is not None:
for san in subject_alt_names.group(1).split(", "):
if san.startswith("DNS:"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment