Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
acme-dns-tiny
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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):
...
@@ -91,7 +91,7 @@ def get_crt(config, log=LOGGER):
if
common_name
is
not
None
:
if
common_name
is
not
None
:
domains
.
add
(
common_name
.
group
(
1
))
domains
.
add
(
common_name
.
group
(
1
))
subject_alt_names
=
re
.
search
(
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
)
csr
,
re
.
MULTILINE
)
if
subject_alt_names
is
not
None
:
if
subject_alt_names
is
not
None
:
for
san
in
subject_alt_names
.
group
(
1
).
split
(
", "
):
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