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
401f5f75
Commit
401f5f75
authored
Dec 07, 2015
by
Lukas Schauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use absolute path of script directory as default BASEDIR, remove trailing slash from BASEDIR
parent
09ed26de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
letsencrypt.sh
letsencrypt.sh
+8
-4
No files found.
letsencrypt.sh
View file @
401f5f75
...
...
@@ -4,7 +4,7 @@ set -e
set
-u
set
-o
pipefail
#
d
efault config values
#
D
efault config values
CA
=
"https://acme-v01.api.letsencrypt.org"
LICENSE
=
"https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf"
HOOK_CHALLENGE
=
...
...
@@ -12,12 +12,16 @@ RENEW_DAYS="14"
KEYSIZE
=
"4096"
WELLKNOWN
=
".acme-challenges"
PRIVATE_KEY_RENEW
=
no
BASEDIR
=
"
./
"
BASEDIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
if
[[
-e
"config.sh"
]]
;
then
.
./config.sh
# If exists load config from same directory as this script
if
[[
-e
"
${
BASEDIR
}
/config.sh"
]]
;
then
.
"
${
BASEDIR
}
/config.sh"
fi
# Remove slash from end of BASEDIR. Mostly for cleaner outputs, doesn't change functionality.
BASEDIR
=
"
${
BASEDIR
%%/
}
"
umask
077
# paranoid umask, we're creating private keys
anti_newline
()
{
...
...
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