A certificate validation operation took milliseconds and has exceeded the execution time threshold sharepoint event error 8321


In this post, we will discuss how to resolve A certificate validation operation took 46540.3415 milliseconds and has exceeded the execution time threshold. If this continues to occur, it may represent a configuration issue which comes in event viewer in SharePoint 2013.

The error looks like below:

Application
Source: Microsoft-SharePoint Products-SharePoint Foundation
Task Category: Topology
Level: Critical
Keywords:
Description:
A certificate validation operation took 46540.3415 milliseconds and has exceeded the execution time threshold. If this continues to occur, it may represent a configuration issue. Please see http://go.microsoft.com/fwlink/?LinkId=246987 for more details.
Event Xml:
<Event xmlns=”http://schemas.microsoft.com/win/2004/08/events/event”>
<System>
<Provider Name=”Microsoft-SharePoint Products-SharePoint Foundation” Guid=”{6FB7E0CD-52E7-47DD-997A-241563931FC2}” />
<EventID>8321</EventID>
<Version>15</Version>
<Level>1</Level>
<Task>13</Task>
<Opcode>0</Opcode>
<Keywords>0x4000000000000000</Keywords>
<TimeCreated SystemTime=”2014-07-07T09:40:49.606550300Z” />
<EventRecordID>123662</EventRecordID>
<Correlation ActivityID=”{E925A29C-3F2F-2077-ACE7-2C7271B8B212}” />



Resolution:

Step-1:
Open SharePoint Management Shell and run below command

$rootCert = (Get-SPCertificateAuthority).RootCertificate
$rootCert.Export(“Cer”) | Set-Content C:\root.cer –Encoding Byte

Step-2:
Go to Run -> MMC

Step-3:
Go to File – > add/remove snap-in

Step-4:
In Add remove Snap-in, Click on Certificate and click on Add -> select computer account and click next – > select local computer and click finish

Step-5:
Expend Certificate – > Trusted Root Certification Authorities -> Certificate -> right click on certificate -> All task -> select import -> Next -> Browse Certificate –> Next-> Finish

Step-6:
Run Gpupdate/force

Step-7:
IIS reset

Read some SharePoint tutorials:


Step-8:
Open gpedit.msc and navigate to “Computer Configuration > Windows > Security Settings > Public Key Policies > Certificate Path Validation Settings”. On the Network Retrieval tab, define the policy and uncheck “Automatically update certificates in the Microsoft Root Certificate Program

Check out Best Alternative to InfoPath -> Try Now

You May Also like the Following SharePoint Online Tutorials: