SharePoint is generous in error messages, and they nearly get a reason evertytime…Just need to figure out
This time, the following error message appeared both on 2010 and 2013 farm:
Which give in text:
Log Name: Application Source: Microsoft-SharePoint Products-SharePoint Foundation Event ID: 8311 Task Category: Topology Level: Error Description: An operation failed because the following certificate has validation errors:nnSubject Name: CN=Server.mydomain.netnIssuer Name: CN=my-CA, DC=mydomain, DC=net Errors:nn SSL policy errors have been encountered. Error code '0x2'..
Cause
A certificate has been binded to IIS for SharePoint Web Services site ((binding SSL port 32844).
Resolution
The server is registered in SharePoint with its short name and this certificate subject contains the FQDN name.
2 solutions:
- Get another certificate with a matching subject name,
- Rename server in SharePoint farm to its FQDN
That last solution was chosen, done in PowerShell.
Get servers with their registered name in farm:
get-spserver
Rename one server (must be done locally on the server):
Rename-SPServer -Identity MyServer -Name MyServer.MyDomain.net
Follow by a iisreset, and wait 10mn to get topology updated 🙂