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
44aca90c
Commit
44aca90c
authored
Jul 13, 2016
by
Martin Schut
Committed by
Lukas Schauer
Jul 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce per cert configuration directory DOMAINS_D (#242)
parent
2042b177
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
letsencrypt.sh
letsencrypt.sh
+10
-3
No files found.
letsencrypt.sh
View file @
44aca90c
...
...
@@ -105,6 +105,7 @@ load_config() {
ACCOUNTDIR
=
CHALLENGETYPE
=
"http-01"
CONFIG_D
=
DOMAINS_D
=
DOMAINS_TXT
=
HOOK
=
HOOK_CHAIN
=
"no"
...
...
@@ -664,7 +665,13 @@ command_sign_domains() {
# for now this loads the certificate specific config in a subshell and parses a diff of set variables.
# we could just source the config file but i decided to go this way to protect people from accidentally overriding
# variables used internally by this script itself.
if
[
-f
"
${
CERTDIR
}
/
${
domain
}
/config"
]
;
then
if
[[
-n
"
${
DOMAINS_D
}
"
]]
;
then
certconfig
=
"
${
DOMAINS_D
}
/
${
domain
}
"
else
certconfig
=
"
${
CERTDIR
}
/
${
domain
}
/config"
fi
if
[
-f
"
${
certconfig
}
"
]
;
then
echo
" + Using certificate specific config file!"
ORIGIFS
=
"
${
IFS
}
"
IFS
=
$'
\n
'
...
...
@@ -673,7 +680,7 @@ command_sign_domains() {
aftervars
=
"
$(
_mktemp
)
"
set
>
"
${
beforevars
}
"
# shellcheck disable=SC1090
.
"
${
CERTDIR
}
/
${
domain
}
/config
"
.
"
${
certconfig
}
"
set
>
"
${
aftervars
}
"
diff
-u
"
${
beforevars
}
"
"
${
aftervars
}
"
|
grep
-E
'^\+[^+]'
rm
"
${
beforevars
}
"
...
...
@@ -893,7 +900,7 @@ command_help() {
command_env
()
{
echo
"# letsencrypt.sh configuration"
load_config
typeset
-p
CA LICENSE CERTDIR CHALLENGETYPE DOMAINS_TXT HOOK HOOK_CHAIN RENEW_DAYS ACCOUNT_KEY ACCOUNT_KEY_JSON KEYSIZE WELLKNOWN PRIVATE_KEY_RENEW OPENSSL_CNF CONTACT_EMAIL LOCKFILE
typeset
-p
CA LICENSE CERTDIR CHALLENGETYPE DOMAINS_
D DOMAINS_
TXT HOOK HOOK_CHAIN RENEW_DAYS ACCOUNT_KEY ACCOUNT_KEY_JSON KEYSIZE WELLKNOWN PRIVATE_KEY_RENEW OPENSSL_CNF CONTACT_EMAIL LOCKFILE
}
# Main method (parses script arguments and calls command_* methods)
...
...
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