Letsen­crypt.org is an open cer­tifi­cate authority, supported by the major browsers: Google Chrome, Internet Explorer, Mozilla Firefox, and the mobile browsers for Android and iOS. Learn how to install an SSL cer­tifi­cate from Letsen­crypt.org on a Ubuntu server.

Be secure. Buy an SSL cer­tifi­cate.
  • Secures data transfers
  • Avoids browser warnings
  • Improves your Google ranking

Con­nect­ing to the Server via SSH

You can establish an encrypted network con­nec­tion to your server using Secure Shell (SSH).

Computers with Windows Operating systems

SSH is not installed by default on computers with Windows operating systems. To establish an encrypted network con­nec­tion using Secure Shell, you need an ad­di­tion­al program, e.g. PuTTY.

Computers with Linux Operating Systems

If you use Linux, follow these steps to establish a SSH con­nec­tion to your server:

  1. Open a terminal (e.g. xterm)
  2. Enter the following command in the terminal: ssh root@< SERVER'S IP ADDRESS>
  3. Example: ssh root@70.35.196.146
  4. Enter your password.

Updating Your Server

To update your server, enter the following commands:

apt-get update
apt-get upgrade

Pointing your Domain to Your Server IP

To point your domain to your server IP address, follow these steps:

  1. Log in to your IONOS Control Panel and select the relevant package.
  2. Click Manage Domains.
  3. Click the arrow icon next to your domain to display the options menu.
  4. In the options menu, go to Domain Settings and select Edit DNS Settings.
  5. Select Other IP address and enter each part of your server’s IP in the field. Each part of the IP is separated by a dot(.). Example: 70.35.196.146
  6. Click Save.

A con­fir­ma­tion page is displayed, informing you that the changes will be updated ac­cord­ing­ly. As with all DNS changes, it may take up to one hour for your changes to propagate through­out the Internet.

In­stalling GIT

To install GIT:

  1. You must be logged in to your server.
  2. Enter the command apt-get install git.
  3. Enter y and press Enter.
  4. GIT will be installed.

In­stalling Apache

To install Apache on your server:

  1. Enter the command apt-get install apache2.
  2. Press Enter.
  3. Apache will be installed.

Cloning the Let’s Encrypt Client

To clone the repos­i­to­ry of the Let’s Encrypt Client, enter the following commands:

git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./letsencrypt-auto --help

In­stalling the Let’s Encrypt Client for Apache

To install the Let’s Encrypt Client for Apache:

In­stalling MOD SSL in Apache

To install the the MOD SSL in Apache, enter the following command:

sudo a2enmod ssl

Con­fig­ur­ing VHOSTS

To use the SSL en­cryp­tion for your website, you have to create two vhosts: one vhost for the website part that will be accessed via HTTP con­nec­tion (public), and another vhost for the part that will be accessed via HTTPS (SSL).

To become root user, enter the following command:

sudo su

Renewing Your Cer­tifi­cate

Your cer­tifi­cate is valid for 3 months. Let’s Encrypt rec­om­mends renewing the cer­tifi­cate every 60 days. To renew the cer­tifi­cate, enter the following command:

./letsencrypt-auto certonly –webroot –w /var/www/YOURDOMAIN /public_html/ -d YOURDOMAIN.com

Example:

./letsencrypt-auto certonly –webroot –w /var/www/applicationpack1.com/public_html/ -d applicationpack1.com
SSL Cer­tifi­cate Checker
Go to Main Menu