Installing a Free SSL Certificate from Let’s Encrypt on Ubuntu is an open certificate 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 certificate from on a Ubuntu server.

SSL certificates from IONOS

Protect your domain and gain visitors' trust with an SSL-encrypted website!

Easy activation
Proven safety
24/7 assistance

Connecting to the Server via SSH

You can establish an encrypted network connection 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 connection using Secure Shell, you need an additional program, e.g. PuTTY.

Computers with Linux Operating Systems

If you use Linux, follow these steps to establish a SSH connection 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@
  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:
  6. Click Save.

A confirmation page is displayed, informing you that the changes will be updated accordingly. As with all DNS changes, it may take up to one hour for your changes to propagate throughout the Internet.

Installing 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.

Installing 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 repository of the Let’s Encrypt Client, enter the following commands:

git clone
cd letsencrypt
./letsencrypt-auto --help

Installing the Let’s Encrypt Client for Apache

To install the Let’s Encrypt Client for Apache:

Installing MOD SSL in Apache

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

sudo a2enmod ssl

Configuring VHOSTS

To use the SSL encryption for your website, you have to create two vhosts: one vhost for the website part that will be accessed via HTTP connection (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 Certificate

Your certificate is valid for 3 months. Let’s Encrypt recommends renewing the certificate every 60 days. To renew the certificate, enter the following command:

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


./letsencrypt-auto certonly –webroot –w /var/www/ -d
Free SSL check
We use cookies on our website to provide you with the best possible user experience. By continuing to use our website or services, you agree to their use. More Information.