SharePoint 2013 – The root of the certificate chain is not a trusted root authority

This is quick one. A ticket was generated from a client to fix the error on their existing SharePoint 2013 UAT environment. The error read something similar to this. The key error was “The root of the certificate chain is not a trusted root authority”,

Critical   An operation failed because the following certificate has validation errors:\n\nSubject Name: CN=*********.********.com, OU=*****, O=********, L=*****, S=*****, …………… The root of the certificate chain is not a trusted root authority..        

There is already a KB article for this.

http://support.microsoft.com/kb/2545744

As mentioned in the resolution section:

In order to resolve this problem, the local trust relationship has to be created. This can be done by running the following PowerShell commands

$rootCert = (Get-SPCertificateAuthority).RootCertificate
New-SPTrustedRootAuthority -Name “localNew” -Certificate $rootCert

After running the above commands, perform an IISReset on all servers in the farm.