SSL Certificates' FAQ

How to enable SSL certificate for a domain

You can install SSL certificate for your domain with the following command:

cd /root
curl keitaro.io/enable-ssl.sh > run; bash run -D domain.com

Important! Make sure the domain has an active a-record with the server's ip.

How to install SSL for several domains at once

cd /root
curl keitaro.io/enable-ssl.sh > run; bash run -D domain.com,domain2.com,domain3.com

The script will not work if the server was not configured by the script of single-click installation.

Important! Make sure the domain has an active a-record with the server's ip.

How to enable SSL for a domain with CloudFlare

You need to enable SSL on CloudFlare if the domain is integrated with CloudFlare.

Error: Unknown error during the installation

Run a command:

wget https://dl.eff.org/certbot-auto
chmod a+x ./certbot-auto
./certbot-auto --install-only
mv -f certbot-auto /usr/bin/certbot

Put “y” in Is this ok [y/d/N]: query.

Try to run the SSL installation process again.

Certificate SSL is issued but shown as invalid in a browser

If you issued certificates for more than 100 domains, delete the old and unnecessary domains. Run the following command:

export domains="domain1.com domain2.com domain3.com"
for domain in $domains; do echo Deleting $domain; rm -f /etc/nginx/conf.d/$domain.conf; certbot delete --cert-name $domain; done

The certificate isn't issued, enable-ssl scriot shows unknown error

Update certbot utility:

curl -sSL https://dl.eff.org/certbot-auto > certbot-auto
chmod a+x ./certbot-auto
./certbot-auto --install-only
mv certbot-auto /usr/bin/certbot-2