Claim your Biolink Click Here
0 like 0 dislike
430 views
in Education & Reference by (830 points) | 430 views

1 Answer

0 like 0 dislike
Best answer

SSH into the server

SSH into the server running your HTTP website as a user with sudo privileges.

Install Certbot

Run these commands on the command line on the machine to install Certbot.

wget https://dl.eff.org/certbot-auto

sudo mv certbot-auto /usr/local/bin/certbot-auto

sudo chown root /usr/local/bin/certbot-auto
sudo chmod 0755 /usr/local/bin/certbot-auto

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 certificate
If 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

Set up automatic renewal
We 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

Confirm that Certbot worked
To 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/.

by (4.6k points)

Related questions

3 like 0 dislike
1 answer
asked May 27, 2021 in Education & Reference by Yogi (460 points) | 539 views
1 like 0 dislike
1 answer
2 like 0 dislike
1 answer
asked Jun 2, 2020 in Education & Reference by Sam (1.6k points) | 741 views
1 like 0 dislike
1 answer
2 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,308 questions
1,469 answers
568 comments
4,809 users