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
1eb6f6d2
Commit
1eb6f6d2
authored
Dec 14, 2015
by
Lukas Schauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grab root certificate url from certificate, fixes #43
parent
6816216f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
config.sh.example
config.sh.example
+0
-3
letsencrypt.sh
letsencrypt.sh
+5
-8
No files found.
config.sh.example
View file @
1eb6f6d2
...
...
@@ -34,9 +34,6 @@
# Path to openssl config file (default: <unset> - tries to figure out system default)
#OPENSSL_CNF=
# Name of root certificate (default: lets-encrypt-x1-cross-signed.pem)
#ROOTCERT="lets-encrypt-x1-cross-signed.pem"
# Program or function called in certain situations
#
# After generating the challenge-response, or after failed challenge (in this case altname is empty)
...
...
letsencrypt.sh
View file @
1eb6f6d2
...
...
@@ -21,7 +21,6 @@ KEYSIZE="4096"
WELLKNOWN
=
PRIVATE_KEY_RENEW
=
"no"
OPENSSL_CNF
=
"
$(
openssl version
-d
|
cut
-d
'"'
-f2
)
/openssl.cnf"
ROOTCERT
=
"lets-encrypt-x1-cross-signed.pem"
CONTACT_EMAIL
=
set_defaults
()
{
...
...
@@ -372,12 +371,10 @@ sign_domain() {
_openssl x509
-text
<
"
${
crt_path
}
"
# Create fullchain.pem
if
[[
-e
"
${
BASEDIR
}
/certs/
${
ROOTCERT
}
"
]]
;
then
echo
" + Creating fullchain.pem..."
cat
"
${
crt_path
}
"
>
"
${
BASEDIR
}
/certs/
${
domain
}
/fullchain-
${
timestamp
}
.pem"
cat
"
${
BASEDIR
}
/certs/
${
ROOTCERT
}
"
>>
"
${
BASEDIR
}
/certs/
${
domain
}
/fullchain-
${
timestamp
}
.pem"
ln
-sf
"fullchain-
${
timestamp
}
.pem"
"
${
BASEDIR
}
/certs/
${
domain
}
/fullchain.pem"
fi
echo
" + Creating fullchain.pem..."
cat
"
${
crt_path
}
"
>
"
${
BASEDIR
}
/certs/
${
domain
}
/fullchain-
${
timestamp
}
.pem"
_request get
"
$(
openssl x509
-in
"
${
BASEDIR
}
/certs/
${
domain
}
/cert-
${
timestamp
}
.pem"
-noout
-text
|
grep
'CA Issuers - URI:'
|
cut
-d
':'
-f2-
)
"
>>
"
${
BASEDIR
}
/certs/
${
domain
}
/fullchain-
${
timestamp
}
.pem"
ln
-sf
"fullchain-
${
timestamp
}
.pem"
"
${
BASEDIR
}
/certs/
${
domain
}
/fullchain.pem"
# Update remaining symlinks
if
[
!
"
${
privkey
}
"
=
"privkey.pem"
]
;
then
...
...
@@ -502,7 +499,7 @@ command_help() {
command_env
()
{
echo
"# letsencrypt.sh configuration"
typeset
-p
CONFIG
typeset
-p
CA LICENSE BASEDIR WELLKNOWN PRIVATE_KEY KEYSIZE OPENSSL_CNF
ROOTCERT
HOOK RENEW_DAYS PRIVATE_KEY_RENEW CONTACT_EMAIL
typeset
-p
CA LICENSE BASEDIR WELLKNOWN PRIVATE_KEY KEYSIZE OPENSSL_CNF HOOK RENEW_DAYS PRIVATE_KEY_RENEW CONTACT_EMAIL
exit
0
}
...
...
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