Error exporting picture from UPA to Active Directory
Published May 15 2019 03:06 PM 227 Views

First published on TECHNET on Nov 27, 2012

While trying to export the picture from SharePoint My Sites to the Active Directory attribute ThumbnailPhoto my customer was getting the following error

 

Error 8311 in Application logs which contained data like the following

 

An operation failed because the following certificate has validation errors:\n\nSubject Name: CN=mysite.domain.com, OU=App, O=domain.com\nIssuer Name: CN=Company Sub Root CA, OU=App, O=cigna.com\nThumbprint: 26CA7D675C917658E7CB6A6A9E9F7AAAF09B109B\n\nErrors:\n\n The root of the certificate chain is not a trusted root authority..

 

**Identities have been changed to protect the innocent :)

 

Issue

 

The Root certificate for intermediate Root CA was not trusted within SharePoint.  We knew this by performing the following steps



    1. Navigating to https://mysite.domain.com

 

    1. Clicking on the lock to the right of the address bar

 

    1. Click the link View Certificates

 

    1. Select Certification Path

 

    1. Match 'Company Sub Root CA' from the error with an authority in the path



Solution

 

We had to follow these steps



    1. On SharePoint Server open an MMC Console

 

    1. Add the snap-in Certificates for the Computer Account

 

    1. Expand Certificates -> Intermediate Certification Authorities -> Certificates

 

    1. Select certificate that matches 'Company Sub Root CA' from the error

 

    1. Right click All Tasks -> Export

 

    1. Export to file C:\SubRoot.cer as 'DER encoded binary X.509(.CER)

 

    1. Then on the SharePoint server open SharePoint 2010 Management Shell

 

    1. Run the following commands



$Cert = Get-PfxCertificate <C:\SubRoot.cer>

 

New-SPTrustedRootAuthority <UniqueName> -Certificate $Cert

 

Articles

 

Exchange trust certificates between farms (SharePoint Foundation 2010)

 

http://technet.microsoft.com/en-us/library/ee806868.aspx

Version history
Last update:
‎Apr 28 2020 02:56 PM
Updated by: