letsencrypt free ssl ubuntu code example
Example: letsencrypt free ssl ubuntu
Follow the below steps to install:
Step 1: Inside terminal run the following command:
sudo apt update && sudo apt upgrade
Step 2: Install certbot by running following command:
sudo apt install certbot python3-certbot-apache
Step 3: Issue certificate for your domain using certbot
sudo certbot --apache -d cinque.webcharitraa.com
Step 4: Now If you facing unauthorized error. then for solving this you need to
run the following command which will give all access to certbot for adding a
file automatically inside .well-known/acme-challenge/
chmod -R 777 /var/www/html/YOUR_DOMAIN.com/public_html/.well-known
Step 5: Hooray! your letsencrypt certificate is successfully activated.
Step 6: For renewing the certificate just run the below command:
sudo certbot renew --dry-run
reference: https://www.youtube.com/watch?v=WPPBO-QpiJ0