CodeGuru

Reboot Your Programming!
Menu
  • Home
  • IT Certification
  • CompTIA Security+
  • Web Development
  • CoronaVirus Live Update
  • US State Infection

How To Install Lets Encrypt SSL on NGINX DigitalOcean

TheAdmin February 27, 2020

How To Install Lets Encrypt SSL on NGINX DigitalOcean – The first step in installing SSL certificate is to install certain bot Cert bot is a software client that attempts to automate most of the steps in installing an SSL certificate. To install a cert but first add the repository by typing the following command.

How To Install Lets Encrypt SSL on NGINX DigitalOcean

Steps to Install Lets Encrypt SSL

$  sudo add-apt-repository ppa:certbot/certbot

1 – Once you’ve entered this command press enter to execute it.

2 – Press enter at the prompt.

3 – Next we need to install cert bots NGINX  package using the apt method. So type in the following command.

$  sudo apt install python-certbot-nginx

4 – Enter Y at the prompt. Cert Bot is now set up and ready to be used for installation.

Also Read: How To Deploy a NGINX Web Server Droplet on Digital Ocean

It’s very important that you confirm your domain names have been correctly entered into the default block configuration file on your NGINX server. If there are any name variations missing or the domain name is spelt incorrectly under the server name directive the SSL certificates will not work.

Since we’ve confirmed our domain names are correct. All that’s left to do now is obtain the SSL certificate to do so you’re going to type in the following command.

$ sudo certbot –nginx -d example.com -d www.example.com

And Press Enter.

5 – So now what we can do is just test to make sure that the SSL is working on our domain. Type in my domain name and you can see that it is secure.

Your configuration is working correctly and your certificates will be new periodically on their own in the event in order renewal fails for any reason. Let’s encrypt we’ll send you an e-mail to the administrative e-mail you provided during setup and you can see here that we have a success message Congratulations all renewals succeeded and the following certificates have been renewed.

Prev Article
Next Article

Related Articles

install-configure-mysql-database-digitalocean

How To Install And Configure MySQL Database DigitalOcean

NGINX Web Server Droplet

How To Deploy a NGINX Web Server Droplet on Digital Ocean

About The Author

TheAdmin

Leave a Reply Cancel Reply

Search

Like us on Facebook

  • Popular
  • Recent

CodeGuru

Reboot Your Programming!
Copyright © 2023 CodeGuru