Commit 88dd2309 authored by Benoît's avatar Benoît
Browse files

Replacing certbot-auto with certbot

parent 3232d323
......@@ -5,12 +5,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
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
fi
echo -e "\\n### Installing Certbot..."
yum -y install certbot python2-certbot-apache --enablerepo=epel
cd /usr/sbin/r1soft/conf/
......@@ -29,7 +25,7 @@ echo " -- Build CSR -- "
keytool -certreq -alias cdp -file request.csr -keystore ./keystore -storepass "password"
echo " -- Request Certificate -- "
/opt/certbot-auto certonly --csr ./request.csr --standalone
certbot certonly --csr ./request.csr --standalone --non-interactive --agree-tos -m support@haisoft.net
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