MALIKA KAROUM

MALIKA KAROUM

  • Home
  • Inleiding
  • Unite Arab Emirates
  • Blog
  • video’s
  • Promotion
    • Worth for free now
    • Work from Home 2023
    • Gadgets
    • All about Windows
    • about Whatsapp
    • Whats the
    • About websites
    • New Ways
    • New Way of Watching
    • Virtual
    • Website
    • All about Video
    • How to Use
    • YouTube Info
    • All about Twitter
    • The Best of
    • About Apps
    • Google News
    • For Free
    • About This
    • Need More
    • Why should you
    • Iphone news
    • Interesting News
    • About Amazone
    • Some tips
    • About Netflix
    • All about Music
    • About Facebook
  • Marketing
    • Malika Karoum Strategie Modules
    • Malika Karoum Online Marketing
    • Malika Karoum Business Service
    • Malika Karoum Marketing Platform
    • Online business marketing
  • Luxury
    • The Indulgence Business site
    • The Luxury Web site
    • The Ultimate Indulgence
    • The Indulgence Site
    • The Ultimate Luxury Information site
    • Online luxury
  • Malika Karoum
    • Malika Karoum LinkedIn
    • Malika Karoum Facebook
    • Malika Karoum Instagram
    • Malika Karoum Business News
    • Adverteren grote fraude
    • Menu POS
    • Malika Karoum Evenementen
  • Security
  • Malika Karoum link
  • Home
  • Malika Karoum Global News
  • How to Setup SSL on Your Site Quickly and For Free With Let’s Encrypt
February 2, 2023

How to Setup SSL on Your Site Quickly and For Free With Let’s Encrypt

How to Setup SSL on Your Site Quickly and For Free With Let’s Encrypt

by Malika Karoum / Sunday, 31 January 2021 / Published in Malika Karoum Global News

Having an SSL-ready website is increasingly important. Google ranks a HTTPS address higher than a HTTP address, and this is set to continue until HTTP is consigned to history.

Here’s how to quickly generate SSL certificates and implement them on your web site in mere minutes, and for free.

Free and Easy SSL With Let’s Encrypt

Setting up SSL on your website has never been easier thanks to Let’s Encrypt, a popular and free SSL certificate authority.

Founded in April 2016, their certbot script and the fact it’s a free service has made Let’s Encrypt a popular name within the online development world.

Install certbot

This article assumes you already have a Linux web server and domain name you wish to add SSL to. Connect to your server via SSH, and check to see whether or not certbot is already installed with the command:

sudo certbot --version

If the version number is displayed, then certbot is already installed and you can move on to the next section. Otherwise, you may install certbot with the following command:

sudo apt-get -y install certbot

Generate SSL Certificate

To ensure this article works for all servers, first temporarily shutdown your existing HTTP server with the appropriate command:

sudo service nginx stop
sudo service apache2 stop

Please note, the domain name you wish to generate a SSL certificate for must already be pointing to the IP address of your web server. Assuming so, generate a new SSL certificate with the command:

certbot certonly

You will be prompted to choose a method to verify your domain name. Press 1 to spin up a temporary server instance, and the next prompt will ask for your domain name. Upon entering your domain, certbot will check and ensure the domain name resolves to your server meaning you control the domain, then generate your new SSL certificate.

Configure Nginx

If you’re using Nginx as your HTTP server, first determine where your website’s configuration file is. This will basically always be within one of the following directories:

  • /etc/nginx/sites-enabled
  • /etc/nginx/conf.d

Once you know the location of your site’s configuration file, open it in a text editor such as nano with the command:

sudo nano /etc/nginx/sites-enabled/default.conf

At the very top of the file, add the following lines:

server {
listen 80;
rewrite ^ https://$ server_name$ request_uri? permanent;
}

This will automatically redirect all non-SSL requests to your site to their SSL counterpart. Within the top of the file you will see the beginning of your site’s configuration:

server {
listen 80;
server_name domain.com www.domain.com;

Modify this and change listen 80; to listen 443 ssl; Then add the following lines underneath:

ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem;

Make sure to replace domain.com in the above lines with your domain name. Save and close the file by pressing Ctrl+W followed by the prompt, and restart Nginx with the command:

sudo service nginx start

Visit your web site, and it should now be in SSL without any browser warning regarding an insecure site.

Configure Apache

If you are using Apache as your HTTP server, first locate your web site’s configuration file which will most likely be within the /etc/apache2/sites-enabled directory. If you are unsure of the location, run the command:

apachectl -S

This will display all virtual hosts configured on Apache with their respective locations. Once you have located the configuration file, open it in a text editor with the command:

sudo nano /etc/apache2/sites-enabled/default.conf

At the top of this file, enter the lines:

<VirtualHost *:80>
ServerName yourdomain.com
Redirect permanent / https://yourdomain.com/
</VirtualHost>

Within the existing <VirtualHost *:80> directive change the port from 80 to 443. Inside this directive, add the lines:

SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/domain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.com/privkey.pem

Make sure to change domain.com in the above lines with your actual domain. Save and close the file by pressing Ctrl+X followed by the prompt, then restart Apache with the command:

sudo service apache2 start

Visit your web site, and it should now be in SSL without any browser warning regarding an insecure site.

Renew SSL Certificates

If any when you ever need to renew the SSL certificates for your web site, this can easily be done with the following command:

certbot renew

Site Secured!

Congratulations, now every visitor to your web site will be forced to its SSL version, which is now protected against a newly generated SSL certificate that is signed by a trusted authority meaning your visitors will not receive any security warnings.

In this article you have learned what certbot is, how to generate new SSL certificates, how to configure either Nginx or Apache with SSL, and how to renew your certificates at a later date.

Image Credit: Robert Avgustin/Shutterstock

MakeUseOf – Feed

  • Tweet
Tagged under: Encrypt, Free, Lets, Quickly, Setup, Site

About Malika Karoum

What you can read next

Huge Deals on Smartphone Accessories, Dash Cams, and More
Essential Tips for a Winning Resume
Amazon Is Watching You: Is Shopping More Important Than Privacy?

Malika Karoum Blog 2023

  • How to Delete the Last 15 Minutes of Your Google Search History

    There’s a quick way for you to clear your...
  • Lenovo Wants You to Know Its Yoga Pad Pro Can Be Used as a Portable Switch Display

    Sometimes, when playing with your Nintendo Swit...
  • The 5 Best Apps for Buying and Selling Pre-Owned Books

    We’ve all been at the point where we have...
  • Humble’s Recent "Heal Covid-19" Bundle Raised 1.2 Million for Charity

    To help raise money for COVID-19 relief in Indi...
  • Nintendo Partners With PlayVS to Make Its Games Recognized High School Varsity Athletics

    It’s odd—Nintendo gets a lot of flak for ...
  • The Pros and Cons of Playing Video Games on an Emulator

    If you’re a fan of playing retro video ga...
  • 5 Curators to Find the Best Articles Worth Reading on the Internet

    When anyone and everyone is a publisher, it isn...
  • Apple Could Unveil iPads With OLED Screens in 2023

    Apple only just switched from LCD to mini-LED d...
  • What Is Signal and How Does It Work?

    The chances are that you use at least one of th...
  • Samsung’s Upcoming Flagship Exynos Chipset Will Feature AMD’s RDNA2 GPU

    AMD confirmed its partnership with Samsung at C...
  • Atari Finally Reveals the Launch Date for the New Atari VCS Console

    At last, after what seems like an age (it pract...
  • Twitter Starts Testing Full-Screen Ads in Fleets

    Twitter has announced that it will be adding fu...
  • When Is Facebook Messenger Going to Offer End-to-End Encryption?

    Facebook Messenger is easy to use and has great...
  • Get Paid to Play Apps: How They Work and What You Risk

    You’ve probably seen advertisements for a...
  • When Will PS5 Production Ensure Supply Meets Demand?

    Despite the PS5’s launch taking place in ...
  • How to Manage Processes on Ubuntu Using System Monitor

    Linux, like most modern operating systems, is v...
  • How to Get Verified on Twitter and Finally Get That Blue Check Mark

    Twitter, like most social media platforms, offe...
  • 10 Street Photography Tips That Will Make You a Better Photographer

    Street photography is enjoyed by many enthusias...
  • Huawei Freebuds 4i Review: Quality ANC Earbuds for $100

    Huawei Freebuds 4i 8.00 / 10 Read Reviews Read ...
  • What Is Extended Reality (XR) and How Does It Work?

    We’re living in a digital age where the virtual...

MALIKA KAROUM ONLINE MARKETING PLATFORM

Office:
RME HOLDINGS SARL – DUBAI BRANCH

BUSINESS CENTER

Parcel ID: 345-835

Area: Bur Dubai

Sub Area: Burj Khalifa

UNITED ARAB EMIRATES

 

 

 

Malika Karoum Concept

Malika Karoum Projects

  • GET SOCIAL

© 2014 Malika Karoum -United Arab Emirate Dubai- All Rights Reserved

TOP