|
|
|
@ -720,7 +720,9 @@ class ACMEClient(object):
|
|
|
|
|
common_name = re.search(r"Subject:.*? CN\s?=\s?([^\s,;/]+)", to_text(out, errors='surrogate_or_strict'))
|
|
|
|
|
if common_name is not None:
|
|
|
|
|
domains.add(common_name.group(1))
|
|
|
|
|
subject_alt_names = re.search(r"X509v3 Subject Alternative Name: \n +([^\n]+)\n", to_text(out, errors='surrogate_or_strict'), re.MULTILINE | re.DOTALL)
|
|
|
|
|
subject_alt_names = re.search(
|
|
|
|
|
r"X509v3 Subject Alternative Name: (?:critical)?\n +([^\n]+)\n",
|
|
|
|
|
to_text(out, errors='surrogate_or_strict'), re.MULTILINE | re.DOTALL)
|
|
|
|
|
if subject_alt_names is not None:
|
|
|
|
|
for san in subject_alt_names.group(1).split(", "):
|
|
|
|
|
if san.startswith("DNS:"):
|
|
|
|
|