Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
HaiSoft (public)
R1Soft - Lets Encrypt Integration
Commits
f5b1a5e6
Unverified
Commit
f5b1a5e6
authored
May 16, 2018
by
MegaS0ra
Committed by
GitHub
May 16, 2018
Browse files
Moved Let's Encrypt install location to /opt
parent
cde78394
Changes
1
Hide whitespace changes
Inline
Side-by-side
SSLR1Soft.sh
View file @
f5b1a5e6
...
...
@@ -15,16 +15,17 @@ fi
yum
-y
update nss nss-util nss-sysinit nss-tools wget curl ca-certificates openssl
echo
-e
"
\\
n### Installing Let's Encrypt..."
if
[
!
-d
"/root/letsencrypt/"
]
;
then
if
[
!
-d
"/opt/letsencrypt/"
]
;
then
cd
/opt/
||
exit
git clone https://github.com/letsencrypt/letsencrypt
fi
echo
-e
"
\\
n### Certificate creation..."
service iptables stop
if
[
!
-f
"/etc/letsencrypt/live/
$(
hostname
)
/fullchain.pem"
]
;
then
.
/letsencrypt/letsencrypt-auto certonly
--standalone
--agree-tos
--no-eff-email
--manual-public-ip-logging-ok
-d
"
$(
hostname
)
"
--rsa-key-size
4096
--email
"
$1
"
/opt
/letsencrypt/letsencrypt-auto certonly
--standalone
--agree-tos
--no-eff-email
--manual-public-ip-logging-ok
-d
"
$(
hostname
)
"
--rsa-key-size
4096
--email
"
$1
"
else
.
/letsencrypt/letsencrypt-auto renew
/opt
/letsencrypt/letsencrypt-auto renew
fi
service iptables start
...
...
Write
Preview
Supports
Markdown
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