Let’s Encrypt SSL Certificates using Standalone Manual Mode - saviovettoor/DevOps-wiki GitHub Wiki
In order to generate an SSL certificate manually, we need a package called certbot-auto.
wget https://dl.eff.org/certbot-auto
sudo mv certbot-auto /usr/local/bin/certbot-auto
sudo chown root /usr/local/bin/certbot-auto
chmod 0755 /usr/local/bin/certbot-auto
/usr/local/bin/certbot-auto --help
NOTE: NOW Please ensure that the domain for which you are trying to generate certificates is pointing to the IP of the server in which you are executing the commands.
once the domain is pointed run the below command
certbot-auto certonly --standalone --agree-tos --non-interactive --text --rsa-key-size 4096 --email [email protected] -d "example.com"
--standalone Run a standalone webserver for authentication
Certbot will launch its own webserver during the generation process.
If you have a webserver running we can go-ahead with manual mode
certbot-auto certonly --agree-tos --non-interactive --text --rsa-key-size 4096 --email [email protected] --webroot-path /var/www/html --domain "example.com"
Once the command got executed successfully the certs will be in the folder
ls /etc/letsencrypt/live/example.com