letsencrypt free ssl on cpanel

Follow the below steps to install: 

Step 1: Inside terminal run the following command:
	git clone https://github.com/acmesh-official/acme.sh

Step 2: Install acme.sh by running following command:
		cd acme.sh/
		./acme.sh --install

Step 3: Issue certificate for your domain using acme.sh
	./acme.sh --issue -d YOUR_DOMAIN.com -d www.YOUR_DOMAIN.com -w /PATH_WHERE_CERTIFICATE_WILL STORE
    
    ./acme.sh --install-cert -d YOUR_DOMAIN.com \
    --ca-file ca_bundle.cer \
    --cert-file      certificate.cer  \
    --key-file       private.key \
    --fullchain-file fullchain.cer \
    --reloadcmd     "service apache2 force-reload"
    
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: Now get the issue file from /PATH_WHERE_CERTIFICATE_WILL and inside the
Manage ssl inside cpanel add new certificate for selected domain using
certificate.cer, private.key, ca_bundle.cer files and then click install.

Step 6: Hooray! your letsencrypt certificate is successfully activated.

reference: https://www.youtube.com/watch?v=kWhDwYGwR50

Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source