Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
letsencrypt.sh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
letsencrypt.sh
Commits
34f94322
Commit
34f94322
authored
Feb 10, 2016
by
Lukas Schauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed splitting of domain names in extract_altnames (fixes #127)
parent
39c01fd7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
letsencrypt.sh
letsencrypt.sh
+1
-1
No files found.
letsencrypt.sh
View file @
34f94322
...
...
@@ -306,7 +306,7 @@ extract_altnames() {
# SANs used, extract these
altnames
=
"
$(
<<<
"
${
reqtext
}
"
grep
-A1
'^[[:space:]]*X509v3 Subject Alternative Name:[[:space:]]*$'
|
tail
-n1
)
"
# split to one per line:
altnames
=
"
$(
<<<
"
${
altnames
}
"
_sed
-e
's/^[[:space:]]*//; s/, /\'$'
\n
''/'
)
"
altnames
=
"
$(
<<<
"
${
altnames
}
"
_sed
-e
's/^[[:space:]]*//; s/, /\'$'
\n
''/
g
'
)
"
# we can only get DNS: ones signed
if
[
-n
"
$(
<<<
"
${
altnames
}
"
grep
-v
'^DNS:'
)
"
]
;
then
_exiterr
"Certificate signing request contains non-DNS Subject Alternative Names"
...
...
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