dotlah! dotlah!
  • Cities
  • Technology
  • Business
  • Politics
  • Society
  • Science
  • About
Social Links
  • zedreviews.com
  • citi.io
  • aster.cloud
  • liwaiwai.com
  • guzz.co.uk
  • atinatin.com
0 Likes
0 Followers
0 Subscribers
dotlah!
  • Cities
  • Technology
  • Business
  • Politics
  • Society
  • Science
  • About
  • Technology

How To Configure SSL In NGINX

  • February 1, 2018
Total
0
Shares
0
0
0

Before you begin

Prerequisites :

  • Must have the certificates provided by the Certificate Authority
  • Must have the Private Key

Setup and Configure

1. Bundle the Certificate files received from CA

cat <ssl_certificate_from_ca> <intermediate_certificate_from_ca> >> <filename_bundled_ssl_certificate>

2. Upload the SSL Certificate Bundle and Private Key to the Server

scp <bundled_ssl_certificate> <user>@<host>:/home/ubuntu/
scp <private_key> <user>@<host>:/home/ubuntu/

3. SSH to the Server

$ ssh-add <private_key>;
$ ssh <user>@<host>;

4. Move the SSL Certificates to /etc/ssl

sudo mv /home/ubuntu/<bundled_ssl_certificate> /etc/ssl
sudo mv /home/ubuntu/<private_key> /etc/ssl

5. Change file permissions

sudo chmod 644 /etc/ssl/<bundled_ssl_certificate>
sudo chmod 644 /etc/ssl/<private_key>

6. Configure the Nginx configuration for your domain that will be using the SSL Certificates

sudo nano /etc/nginx/sites-available/default

  server {
    ...

    # Enter the following in the server block

    # ---------------
    # SSL
    # ---------------
    listen 443 ssl;

    ssl_certificate /etc/ssl/<bundled_ssl_certificate>;
    ssl_certificate_key /etc/ssl/<private_key>;

    # ----------------
    # Redirect to HTTPS
    # ----------------
    if ($scheme = 'http') {
      return 301 https://$host$request_uri;
    }

    ...
  }

Total
0
Shares
Share
Tweet
Share
Share
Related Topics
  • HTTPS
  • Security
  • SSL
majulah

Previous Article
  • Cities
  • Lah!

OneService App Turns Three!

  • January 23, 2018
View Post
Next Article
  • Cities
  • Lah!

Know Your Tree – NParks Launches Interactive Map Of Trees Across Singapore

  • February 5, 2018
View Post
You May Also Like
View Post
  • Artificial Intelligence
  • Technology

Here’s how to get the $7 trillion AI hardware buildout right

  • dotlah.com
  • April 18, 2026
totus-technologies-cover
View Post
  • Business
  • Technology
  • World Events

The Transatlantic Tech Rift and Why Data Sovereignty Is the New Industrial Imperative

  • Ackley Wyndam
  • April 16, 2026
View Post
  • Technology

Hon Hai Technology Group (Foxconn) Recognized As Top 100 Global Innovators 2026

  • Dean Marc
  • April 9, 2026
View Post
  • Artificial Intelligence
  • Technology

Kioxia Announces New SSD Model Optimized for AI GPU-Initiated Workloads

  • Dean Marc
  • March 17, 2026
View Post
  • Artificial Intelligence
  • Technology

U.S. Ski & Snowboard and Google Announce Collaboration to Build an AI-Based Athlete Performance Tool

  • Dean Marc
  • February 8, 2026
View Post
  • Artificial Intelligence
  • Technology

IBM to Support Missile Defense Agency SHIELD Contract

  • Dean Marc
  • February 5, 2026
Smartphone hero image
View Post
  • Gears
  • Technology

Zed Approves | Smartphones for Every Budget Range

  • Ackley Wyndam
  • January 29, 2026
View Post
  • People
  • Technology

This is what the new frontier of AI-powered financial inclusion looks like

  • dotlah.com
  • January 2, 2026


Trending
  • 1
    • Cities
    • Lah!
    ERP Rates Reduced By $1 Across All ERP-Chargeable Gantries Ahead Of The June 2021 School Holiday Period
    • May 24, 2021
  • 2
    • Society
    Coronavirus Fears: Should We Take A Deep Breath?
    • February 7, 2020
  • 3
    • Lah!
    ​Cambridge University And NTU Singapore Establish New Research Centre To Support Lifelong Learning
    • October 8, 2020
  • dotlah-singapore-kharl-anthony-paica-Btf-M-Hu8Xw-unsplash 4
    • Artificial Intelligence
    • Cities
    • Technology
    These 4 cities are making innovative use of generative AI
    • May 16, 2024
  • new york 5
    • Cities
    • Scapes
    How To Explore NYC On A Low Budget
    • January 11, 2021
  • 6
    • Science
    • Technology
    New Quantum Magnet Unleashes Electronics Potential
    • July 27, 2023
  • 7
    • Cities
    • Lah!
    IMDA Collaborates With Industry To Help Singaporeans Continue To Enjoy A High Quality Of Life From Home With Digital Tech Amid COVID-19
    • March 26, 2020
  • city skyline sunset 8
    • Cities
    How Cities Can Combat The Dangerous Combination Of Extreme Heat And COVID
    • September 6, 2020
  • 9
    • Cities
    • Society
    How The Coronavirus Market Turmoil Compares To 2008 – And What We Can Do
    • March 14, 2020
  • 10
    • Cities
    • Lah!
    NEA Urges Vigilance As Dengue Cases Could Increase At Year-End
    • October 27, 2021
  • 11
    • Technology
    Microsoft Launches First Asia Pacific Public Sector Cyber Security Executive Council Across Seven Markets In The Region
    • May 31, 2021
  • 12
    • Lah!
    Singapore Supports Innovative Enterprises To Go Global
    • August 28, 2019
Trending
  • Illustration of data storage 1
    The Splinternet Comes for European Supply Chains Why Fragmentation Is Now a Boardroom Problem
    • April 21, 2026
  • 2
    Here’s how to get the $7 trillion AI hardware buildout right
    • April 18, 2026
  • totus-technologies-cover 3
    The Transatlantic Tech Rift and Why Data Sovereignty Is the New Industrial Imperative
    • April 16, 2026
  • 4
    What will it take to get ships going through the Strait of Hormuz again?
    • April 13, 2026
  • 5
    Hon Hai Technology Group (Foxconn) Recognized As Top 100 Global Innovators 2026
    • April 9, 2026
  • 6
    3 lessons on the energy transition in an age of crisis
    • April 7, 2026
  • 7
    Samsung Unveils Galaxy A57 5G and Galaxy A37 5G, Packing Pro-Level Features at Awesome Price
    • March 25, 2026
  • 8
    The global price tag of war in the Middle East
    • March 24, 2026
  • 9
    Kioxia Announces New SSD Model Optimized for AI GPU-Initiated Workloads
    • March 17, 2026
  • Samsung Odyssey 10
    Samsung Showcases Glasses-Free 3D and HDR10+ GAMING With Acclaimed Game Titles at GDC 2026
    • March 9, 2026
Social Links
dotlah! dotlah!
  • Cities
  • Technology
  • Business
  • Politics
  • Society
  • Science
  • About
Connecting Dots Across Asia's Tech and Urban Landscape

Input your search keywords and press Enter.