Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Adrien Dorsaz
acme-dns-tiny
Commits
5df02405
Commit
5df02405
authored
Jun 12, 2020
by
Adrien Dorsaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
acme_dns_tiny: fix regexp to retrieve Subject Alternative Names
parent
a2bee86e
Pipeline
#273
passed with stages
in 23 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
acme_dns_tiny.py
acme_dns_tiny.py
+1
-1
No files found.
acme_dns_tiny.py
View file @
5df02405
...
...
@@ -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
(
", "
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment