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
10d9f342
Commit
10d9f342
authored
Dec 14, 2015
by
Lukas Schauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
making shellcheck happy again
parent
1ab6a436
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
letsencrypt.sh
letsencrypt.sh
+7
-6
No files found.
letsencrypt.sh
View file @
10d9f342
...
...
@@ -81,7 +81,7 @@ init_system() {
set
-o
noclobber
if
!
{
date
>
"
${
LOCKFILE
}
"
;
}
2>/dev/null
;
then
echo
" + ERROR: Lock file '
${
LOCKFILE
}
' present, aborting."
>
&2
LOCKFILE
=
# so remove_lock doesn't remove it
LOCKFILE
=
""
# so remove_lock doesn't remove it
exit
1
fi
set
+o noclobber
...
...
@@ -103,6 +103,7 @@ init_system() {
CA_NEW_CERT
=
"
$(
printf
"%s"
"
${
CA_DIRECTORY
}
"
| get_json_string_value new-cert
)
"
&&
CA_NEW_AUTHZ
=
"
$(
printf
"%s"
"
${
CA_DIRECTORY
}
"
| get_json_string_value new-authz
)
"
&&
CA_NEW_REG
=
"
$(
printf
"%s"
"
${
CA_DIRECTORY
}
"
| get_json_string_value new-reg
)
"
&&
# shellcheck disable=SC2015
CA_REVOKE_CERT
=
"
$(
printf
"%s"
"
${
CA_DIRECTORY
}
"
| get_json_string_value revoke-cert
)
"
||
(
echo
"Error retrieving ACME/CA-URLs, check if your configured CA points to the directory entrypoint."
;
exit
1
)
...
...
@@ -111,7 +112,7 @@ init_system() {
register
=
"0"
if
[[
-n
"
${
PARAM_PRIVATE_KEY
:-}
"
]]
;
then
# a private key was specified from the command line so use it for this run
echo
"Using private key
"
${
PARAM_PRIVATE_KEY
}
"
instead of account key"
echo
"Using private key
${
PARAM_PRIVATE_KEY
}
instead of account key"
PRIVATE_KEY
=
"
${
PARAM_PRIVATE_KEY
}
"
if
!
openssl rsa
-in
"
${
PRIVATE_KEY
}
"
-check
2>/dev/null
>
/dev/null
;
then
echo
" + ERROR: private key is not valid, can not continue"
...
...
@@ -234,7 +235,7 @@ _request() {
# display the output if the exit code was != 0 to simplify debugging.
_openssl
()
{
set
+e
out
=
"
$(
openssl
$@
2>&1
)
"
out
=
"
$(
openssl
"
${
@
}
"
2>&1
)
"
res
=
$?
set
-e
if
[[
$res
-ne
0
]]
;
then
...
...
@@ -528,7 +529,7 @@ for arg; do
done
# Reset the positional parameters to the short options
eval set
--
$args
eval set
--
"
${
args
}
"
COMMAND
=
""
set_command
()
{
...
...
@@ -606,9 +607,9 @@ case "${COMMAND}" in
command_env
;;
sign
)
command_sign
${
sign_me
}
command_sign
"
${
sign_me
}
"
;;
revoke
)
command_revoke
${
revoke_me
}
command_revoke
"
${
revoke_me
}
"
;;
esac
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