Skip to content
GitLab
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
4b021681
Unverified
Commit
4b021681
authored
May 15, 2018
by
MegaS0ra
Committed by
GitHub
May 15, 2018
Browse files
Added comments and echos
parent
acde938e
Changes
1
Hide whitespace changes
Inline
Side-by-side
SSLR1Soft.sh
View file @
4b021681
#!/bin/bash
# Execute this script followed by the email address to which the Let's Encrypt certificate's notifications will be sent
echo
-e
"
\n
### Checking requirements..."
rpm
-qa
|
grep
"git-"
if
test
$?
-eq
1
then
yum
-y
install
git
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
git clone https://github.com/letsencrypt/letsencrypt
fi
echo
-e
"
\n
### Certificate creation..."
service iptables stop
./letsencrypt/letsencrypt-auto certonly
--standalone
--agree-tos
-d
$(
hostname
)
--rsa-key-size
4096
--email
$1
service iptables start
echo
-e
"
\n
### Adding certificate to R1Soft..."
cd
/etc/letsencrypt/live/
$(
hostname
)
/
openssl pkcs8
-topk8
-nocrypt
-in
privkey.pem
-inform
PEM
-out
privkey.pem.der
-outform
DER
openssl x509
-in
fullchain.pem
-inform
PEM
-out
fullchain.pem.der
-outform
DER
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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