Difference Between Root, Intermediate and Server SSL Certificate (2024)

I integrated the Secret Key file and the Server Certificate that I purchased in my NodeJS application. The server started up without any errors and when I accessed it through HTTPS, Google Chrome showed me that nice green bar.

But when our Android developer tried to access the server it gave him the following error:

1
"javax.net.ssl.SSLHandshakeException: Connection closed by peer"

Since, none of Google Chrome and NodeJS server wasn’t giving me error, I wanted to check if my SSL chain is set up properly. Digicert provides you with a neat little tool to verify your SSL setup. It showed me that my certificate chain is not properly installed.

What is SSL Chain?

Certificate signing authority provides you with three types of certificates:

  1. Root Certificate
  2. Server Certificate
  3. Intermediate Certificate

Root Certificate is the one that belongs to the certificate signing authority. Server Certificate is the one that is provided to you and you install it on your server.

Client requires an SSL chain which links your server to the server signing authority that you got your certificate from. But Root Certificate must be secured and is put behind multiple layers of security. So, what the signing authority does is give out an Intermediate Certificate that you install on your server along with your Server Certificate. This Intermediate Certificate links the client to the certificate signing authority.

To install the Intermediate Certificate, simply append the intermediate certificate beneath your Server Certificate file and import that file just like you would any other Server Certificate.

An example NodeJS certificate implementation is shown below. In the following example, server.crt contains Server Certificate and Intermediate Certificate in the single file.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

var http = require('http');
var https = require('https');

var options = {
key : fs.readFileSync('./config/server.key'),
cert : fs.readFileSync('./config/server.crt')
};

var httpsServer = https.createServer(options, app).listen(process.env.HTTPS_PORT || 8000);

// Redirect HTTP traffic to HTTPS
var httpServer = http.createServer(function (req, res) {
res.writeHead(301, {"Location": "https://" + req.headers['host'] + req.url});
res.end();
}).listen(process.env.HTTP_PORT || 5000);

It’s also a good idea to listen to HTTP traffic and route it to HTTPS.

Difference Between Root, Intermediate and Server SSL Certificate (2024)
Top Articles
What Does a Government Shutdown Mean for Stocks?
Striking the Right Balance: Why Investors Shouldn't Pit GICs vs Mutual Funds
Mrh Forum
Practical Magic 123Movies
Mr Tire Prince Frederick Md 20678
His Lost Lycan Luna Chapter 5
Trade Chart Dave Richard
Www.megaredrewards.com
Mawal Gameroom Download
Whiskeytown Camera
No Credit Check Apartments In West Palm Beach Fl
Unit 1 Lesson 5 Practice Problems Answer Key
Cincinnati Bearcats roll to 66-13 win over Eastern Kentucky in season-opener
Methodist Laborworkx
4302024447
Rosemary Beach, Panama City Beach, FL Real Estate & Homes for Sale | realtor.com®
Gma Deals And Steals Today 2022
Der Megatrend Urbanisierung
Shasta County Most Wanted 2022
Curry Ford Accident Today
Ein Blutbad wie kein anderes: Evil Dead Rise ist der Horrorfilm des Jahres
Sulfur - Element information, properties and uses
Drug Test 35765N
Dark Entreaty Ffxiv
Obituaries Milwaukee Journal Sentinel
Culver's.comsummerofsmiles
Cfv Mychart
Mawal Gameroom Download
What Is Opm1 Treas 310 Deposit
25Cc To Tbsp
Homewatch Caregivers Salary
Memberweb Bw
Hypixel Skyblock Dyes
Skroch Funeral Home
Federal Student Aid
Mydocbill.com/Mr
Wattengel Funeral Home Meadow Drive
Convenient Care Palmer Ma
Ursula Creed Datasheet
How to Quickly Detect GI Stasis in Rabbits (and what to do about it) | The Bunny Lady
Sallisaw Bin Store
Bmp 202 Blue Round Pill
303-615-0055
SF bay area cars & trucks "chevrolet 50" - craigslist
Craigslist Com Brooklyn
Estes4Me Payroll
Nfl Espn Expert Picks 2023
Duffield Regional Jail Mugshots 2023
Leslie's Pool Supply Redding California
Haunted Mansion Showtimes Near The Grand 14 - Ambassador
32 Easy Recipes That Start with Frozen Berries
Latest Posts
Article information

Author: Eusebia Nader

Last Updated:

Views: 5771

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Eusebia Nader

Birthday: 1994-11-11

Address: Apt. 721 977 Ebert Meadows, Jereville, GA 73618-6603

Phone: +2316203969400

Job: International Farming Consultant

Hobby: Reading, Photography, Shooting, Singing, Magic, Kayaking, Mushroom hunting

Introduction: My name is Eusebia Nader, I am a encouraging, brainy, lively, nice, famous, healthy, clever person who loves writing and wants to share my knowledge and understanding with you.