Partial Chain Error: Trusted Root Authority Unreachable

By Alice

"Partial chain error: 'Certificate chain could not be built to a trusted root authority.' - This cryptic message can cause alarm when it appears, especially if you're not very familiar with cryptography. But fear not, this article is here to break down this SSL/TLS error and guide you through resolve it."

a certificate is shown with the word's name in red and green on it
a certificate is shown with the word's name in red and green on it

"Let's start by understanding what's happening here. When a browser or a server validates a certificate, it checks whether the certificate is signed by a trusted Certificate Authority (CA). If it can't establish a trust chain, it throws this error. Now that we've got the basics, let's dive into the reasons behind this issue and how to troubleshoot it."

a certificate is laying on top of a bed
a certificate is laying on top of a bed

Understanding the 'Certificate Chain' Error

"The 'Certificate chain could not be built to a trusted root authority' error is mainly caused by either an untrusted or self-signed certificate, or a certificate that is not issued by a trusted CA."

Me
Me

"To illustrate, let's imagine certificates as a chain of locks. The browser has a ring of keys (trusted CA certificates) and it tries to open each lock in the chain until it reaches the one protecting the resource. If any lock in the chain can't be opened with the browser's keys, it throws this error."

Untrusted or Self-Signed Certificates

When You’re Stuck In A Life You Want To Change ...And How To Change It -
When You’re Stuck In A Life You Want To Change ...And How To Change It -

"Untrusted or self-signed certificates are not issued by a trusted CA. This means they're not part of the browser's or server's existing trust chain."

"As an example, self-signed certificates are commonly used for testing or development purposes. While they're useful in these contexts, they should not be used in a production environment without proper configuration."

Revoked or Expired Certificates

the certificate is being issued to be awarded by the college of justice in india for its achievement
the certificate is being issued to be awarded by the college of justice in india for its achievement

"Another reason for this error is if the server presents a revoked or expired certificate. Certificates have a limited lifespan and, once expired, they should not be used. Similarly, if a certificate has been revoked for security reasons, it too should not be used."

"To check if a certificate is still valid or not, you can use an online Certificate Revocation List (CRL) or Online Certificate Status Protocol (OCSP) checker. These tools provide real-time information about the certificate's status."

Resolving the 'Certificate Chain' Error

a framed certificate with an emblem on it
a framed certificate with an emblem on it

"Now that we understand the causes, let's explore how to resolve this error. The solution depends on the specific cause, but here are some common fixes."

"In many cases, the server administrator can resolve the issue from their end. They might need to replace the certificate with a valid, trusted one, or configure the server to present the intermediate certificates in the certificate chain."

a certificate for an employee to be awarded
a certificate for an employee to be awarded
a certificate is being held up in front of the camera, with a gold seal on it
a certificate is being held up in front of the camera, with a gold seal on it
a certificate for training certificate is displayed on a black and white background with gold trim
a certificate for training certificate is displayed on a black and white background with gold trim
Google Image Result for https://imgv2-1-f.scribdassets.com/img/document/485992060/original/3eb033e3f6/1?v=1
Google Image Result for https://imgv2-1-f.scribdassets.com/img/document/485992060/original/3eb033e3f6/1?v=1
an award certificate is shown in gold and white with a seal on the bottom,
an award certificate is shown in gold and white with a seal on the bottom,
a certificate for an employee to be awarded
a certificate for an employee to be awarded
the certificate for california secretary of state electronic certified copy is shown in black and white
the certificate for california secretary of state electronic certified copy is shown in black and white
Prosemi Pte receives ISO/IEC 17025 AS6171 accreditation | Electronic Specifier
Prosemi Pte receives ISO/IEC 17025 AS6171 accreditation | Electronic Specifier
a certificate for a master title in the form of a document with a red seal on it
a certificate for a master title in the form of a document with a red seal on it

Trusting the Certificate Locally

"If you're frequently visiting a website that presents an untrusted certificate, you might want to add it to your browser's exception list for testing purposes. However, remember that this should not be done in a production environment due to security risks."

"To add an exception in Chrome, click on the 'Not Secure' warning next to the address bar, then click on 'Advanced' and 'Proceed to [website] (unsafe)'. Then, click on 'Certificate is valid' and 'Continue'. From the next screen, you can add the exception."

Ensuring Proper Certificate Installation

"Make sure the certificate is installed correctly. Ensure that the full chain is installed, including the root certificate and any intermediate certificates."

"You can use tools like OpenSSL to check the certificate chain. Here's an example command: `openssl s_client -servername example.com -connect example.com:443 -showcerts`."

"Still encountering issues? It might be worth reaching out to the website administrator or your IT department for further assistance. Regular updates, proper configuration, and secure practices can prevent this error from popping up again."