Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Sign In

Login to our social questions & Answers Engine to ask questions answer people's questions & connect with other people.

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

You must login to add post.

How to install letsencrypt SSL in Linux step by step

  1. SSH into the serverSSH into the server running your HTTP website as a user with sudo privileges.
  2. Install CertbotRun these commands on the command line on the machine to install Certbot.
    1. wget https://dl.eff.org/certbot-auto
    2. sudo mv certbot-auto /usr/local/bin/certbot-auto
    3. sudo chown root /usr/local/bin/certbot-auto
    4. sudo chmod 0755 /usr/local/bin/certbot-auto
  3. Choose how you’d like to run Certbot
    • Either get and install your certificates…Run this command to get a certificate and have Certbot edit your Apache configuration automatically to serve it, turning on HTTPS access in a single step.
      sudo /usr/local/bin/certbot-auto --apache
    • Or, just get a certificateIf you’re feeling more conservative and would like to make the changes to your Apache configuration by hand, run this command.
      sudo /usr/local/bin/certbot-auto certonly --apache
  4. Set up automatic renewalWe recommend running the following line, which will add a cron job to the default crontab.
    echo "0 0,12 * * * root python -c 'import random; import time; time.sleep(random.random() * 3600)' && /usr/local/bin/certbot-auto renew -q" | sudo tee -a /etc/crontab > /dev/null
    
    If above dont work then
    
    use crontab -e and put the below line manually
    15 3 * * * /usr/local/bin/certbot-auto renew
  5. Confirm that Certbot workedTo confirm that your site is set up properly, visit https://yourwebsite.com/ in your browser and look for the lock icon in the URL bar. If you want to check that you have the top-of-the-line installation, you can head to https://www.ssllabs.com/ssltest/.
    check your site’s  https:// at SSL Labs.
Johny

Johny

Enlightened

Student

Leave a comment

You must login to add a new comment.