Skip to content

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)

License

Notifications You must be signed in to change notification settings

cyberprodigy/letsencrypt-cert-generator

Repository files navigation

letsencrypt-cert-generator

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)

Instuctions for use

Make sure you have certbot installed

sudo apt-get install certbot

Update your config file

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

Execute scripts

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

Upload generated certificates to your server

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.

Note

This script accepts all terms of services on your behalf. Read LetsEncrypt TOS to see if you agree.

About

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)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages