Commit f870c1df authored by Benoît's avatar Benoît
Browse files

Replaced Let's Encrypt software by Certbot

parent c39b6e1f
......@@ -2,6 +2,16 @@
export LANG=en_US.UTF-8
export _JAVA_OPTIONS=-Duser.home=/usr/sbin/r1soft/conf
echo -e "\\n### Updating nessary packages..."
yum -y update nss nss-util nss-sysinit nss-tools wget curl ca-certificates openssl
echo -e "\\n### Installing Certbot if needed..."
if [ ! -f "/opt/certbot-auto" ]; then
cd /opt/ || exit
chmod a+x certbot-auto
cd /usr/sbin/r1soft/conf/
mkdir -p /usr/sbin/r1soft/conf/LetsEncrypt
......@@ -20,7 +30,7 @@ echo " -- Build CSR -- "
keytool -certreq -alias cdp -file request.csr -keystore ./keystore -storepass "password"
echo " -- Request Certificate -- "
/opt/letsencrypt/certbot-auto certonly --csr ./request.csr --standalone
/opt/certbot-auto certonly --csr ./request.csr --standalone
echo " -- import Certificate -- "
keytool -import -trustcacerts -alias cdp -file 0001_chain.pem -keystore ./keystore -storepass "password"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment