Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
acme-dns-tiny
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Adrien Dorsaz
acme-dns-tiny
Commits
95443c29
Commit
95443c29
authored
Oct 18, 2018
by
Adrien Dorsaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
acme-dns-tiny: ensure at least one space exists before CN when looking for common name in CSR
parent
2e815dcb
Changes
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 @
95443c29
...
...
@@ -108,7 +108,7 @@ def get_crt(config, log=LOGGER):
log
.
info
(
"Read CSR to find domains to validate."
)
csr
=
_openssl
(
"req"
,
[
"-in"
,
config
[
"acmednstiny"
][
"CSRFile"
],
"-noout"
,
"-text"
])
.
decode
(
"utf8"
)
domains
=
set
([])
common_name
=
re
.
search
(
r"Subject:.*?\s
*
?CN\s*?=\s*?([^\s,;/]+)"
,
csr
)
common_name
=
re
.
search
(
r"Subject:.*?\s
+
?CN\s*?=\s*?([^\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
)
...
...
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