This repo contains Linux shell scripts for working with certbot for manually generating certificates. This is useful for web hostings that do not have integration with Letsencrypt, but allows to install certificates by uploading them via control panel (e.x. CPanel and others)
sudo apt-get install certbot
Open configs/cert_get_config.cfg
in text editor and etner the information
Set your FTP server address and credentials If you have multiple domains hosted on server, come separate them For each domain add etnry to DOCUMENT_ROOT variable to specify root directory on server for the domain Enter your email that will be listed in your SSL certificate to contact you regarding urgent issues
Run these script with root privileges
sudo bash update_single_domain.sh <domain.com>
to get certificate for one domain
or
sudo bash update_all_domains.sh
to get certificates for all domains specified in configs
Then check the logs from cerbot it will produce ssl certificates in folder something like /etc/letsencrypt/live/<domain_name>/privkey.pem /etc/letsencrypt/live/<domain_name>/fullchain.pem
Istall these certificates to your server. See your hosting for options.
This script accepts all terms of services on your behalf. Read LetsEncrypt TOS to see if you agree.