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
744fc60c
Unverified
Commit
744fc60c
authored
May 15, 2018
by
MegaS0ra
Committed by
GitHub
May 15, 2018
Browse files
Creates or renew the cert if already exists
parent
e385301e
Changes
1
Hide whitespace changes
Inline
Side-by-side
SSLR1Soft.sh
View file @
744fc60c
...
...
@@ -21,8 +21,11 @@ fi
echo
-e
"
\n
### Certificate creation..."
service iptables stop
./letsencrypt/letsencrypt-auto certonly
--standalone
--agree-tos
--no-eff-email
--manual-public-ip-logging-ok
-d
$(
hostname
)
--rsa-key-size
4096
--email
$1
service iptables start
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
else
./letsencrypt/letsencrypt-auto renew
--standalone
--agree-tos
--no-eff-email
--manual-public-ip-logging-ok
-d
$(
hostname
)
--rsa-key-size
4096
--email
$1
fiservice iptables start
echo
-e
"
\n
### Adding certificate to R1Soft..."
cd
/etc/letsencrypt/live/
$(
hostname
)
/
...
...
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