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
75be937a
Commit
75be937a
authored
Feb 17, 2016
by
Lukas Schauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow spaces in path to hook-script (fixes #142)
parent
898e75f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
letsencrypt.sh
letsencrypt.sh
+6
-6
No files found.
letsencrypt.sh
View file @
75be937a
...
...
@@ -267,7 +267,7 @@ http_request() {
# Wait for hook script to clean the challenge if used
if
[[
-n
"
${
HOOK
}
"
]]
&&
[[
"
${
HOOK_CHAIN
}
"
!=
"yes"
]]
&&
[[
-n
"
${
challenge_token
:+set
}
"
]]
;
then
${
HOOK
}
"clean_challenge"
''
"
${
challenge_token
}
"
"
${
keyauth
}
"
<&4
>
&5 2>&6
"
${
HOOK
}
"
"clean_challenge"
''
"
${
challenge_token
}
"
"
${
keyauth
}
"
<&4
>
&5 2>&6
fi
# remove temporary domains.txt file if used
...
...
@@ -401,7 +401,7 @@ sign_csr() {
done
# Wait for hook script to deploy the challenges if used
[[
-n
"
${
HOOK
}
"
]]
&&
[[
"
${
HOOK_CHAIN
}
"
=
"yes"
]]
&&
${
HOOK
}
"deploy_challenge"
${
deploy_args
[@]
}
<&4
>
&5 2>&6
[[
-n
"
${
HOOK
}
"
]]
&&
[[
"
${
HOOK_CHAIN
}
"
=
"yes"
]]
&&
"
${
HOOK
}
"
"deploy_challenge"
${
deploy_args
[@]
}
<&4
>
&5 2>&6
# Respond to challenges
idx
=
0
...
...
@@ -410,7 +410,7 @@ sign_csr() {
keyauth
=
"
${
keyauths
[
${
idx
}
]
}
"
# Wait for hook script to deploy the challenge if used
[[
-n
"
${
HOOK
}
"
]]
&&
[[
"
${
HOOK_CHAIN
}
"
!=
"yes"
]]
&&
${
HOOK
}
"deploy_challenge"
${
deploy_args
[
${
idx
}
]
}
<&4
>
&5 2>&6
[[
-n
"
${
HOOK
}
"
]]
&&
[[
"
${
HOOK_CHAIN
}
"
!=
"yes"
]]
&&
"
${
HOOK
}
"
"deploy_challenge"
${
deploy_args
[
${
idx
}
]
}
<&4
>
&5 2>&6
# Ask the acme-server to verify our challenge and wait until it is no longer pending
echo
" + Responding to challenge for
${
altname
}
..."
...
...
@@ -428,7 +428,7 @@ sign_csr() {
# Wait for hook script to clean the challenge if used
if
[[
-n
"
${
HOOK
}
"
]]
&&
[[
"
${
HOOK_CHAIN
}
"
!=
"yes"
]]
&&
[[
-n
"
${
challenge_token
}
"
]]
;
then
${
HOOK
}
"clean_challenge"
${
deploy_args
[
${
idx
}
]
}
<&4
>
&5 2>&6
"
${
HOOK
}
"
"clean_challenge"
${
deploy_args
[
${
idx
}
]
}
<&4
>
&5 2>&6
fi
idx
=
$((
idx+1
))
...
...
@@ -440,7 +440,7 @@ sign_csr() {
done
# Wait for hook script to clean the challenges if used
[[
-n
"
${
HOOK
}
"
]]
&&
[[
"
${
HOOK_CHAIN
}
"
=
"yes"
]]
&&
${
HOOK
}
"clean_challenge"
${
deploy_args
[@]
}
[[
-n
"
${
HOOK
}
"
]]
&&
[[
"
${
HOOK_CHAIN
}
"
=
"yes"
]]
&&
"
${
HOOK
}
"
"clean_challenge"
${
deploy_args
[@]
}
if
[[
"
${
reqstatus
}
"
!=
"valid"
]]
;
then
# Clean up any remaining challenge_tokens if we stopped early
...
...
@@ -533,7 +533,7 @@ sign_domain() {
ln
-sf
"cert-
${
timestamp
}
.pem"
"
${
BASEDIR
}
/certs/
${
domain
}
/cert.pem"
# Wait for hook script to clean the challenge and to deploy cert if used
[[
-n
"
${
HOOK
}
"
]]
&&
${
HOOK
}
"deploy_cert"
"
${
domain
}
"
"
${
BASEDIR
}
/certs/
${
domain
}
/privkey.pem"
"
${
BASEDIR
}
/certs/
${
domain
}
/cert.pem"
"
${
BASEDIR
}
/certs/
${
domain
}
/fullchain.pem"
<&4
>
&5 2>&6
[[
-n
"
${
HOOK
}
"
]]
&&
"
${
HOOK
}
"
"deploy_cert"
"
${
domain
}
"
"
${
BASEDIR
}
/certs/
${
domain
}
/privkey.pem"
"
${
BASEDIR
}
/certs/
${
domain
}
/cert.pem"
"
${
BASEDIR
}
/certs/
${
domain
}
/fullchain.pem"
<&4
>
&5 2>&6
unset
challenge_token
echo
" + Done!"
...
...
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