When the certificate of Fast Search is expired you may have the following symptons:
- Crawl which hangs forever and will have only errors
- Cannot connect to ContentDistributor errors within Eventlog/ULS
To solve this issue you will have to run some scripts. In our scenario Fast is installed on the SharePoint server. Also we use a Self-Signed Certificate. Standard this certificate expires after 1 year.
You can change this by modify the CertificateSetup.ps1 script which is located in your “FastSearch\Installer\scipts\include” folder. This can only be done when you have Windows 2008 R2. Windows 2008 will not support this.
Find the following line:
Add-Content –Path $infFile –Value “SuppressDefaults=true”
Add the following lines underneath:
Add-Content –Path $infFile –Value “ValidityPeriod=Years”
Add-Content –Path $infFile –Value “ValidityPeriodUnits=5″
You can increase or decrease the value of ValidityPeriodUnits to the number of years you want.
The next step will be the recreation of the certificate. This can be done by opening the Fast Management Shell via the service account of the Fast service. Also when you use User Account Control you will have to run this as Administrator. Ensure that all of the Fast Services are stopped.
Navigate to folder “\installer\scripts” and run the following script:
.\ReplaceDefaultCertificate.ps1 –generateNewCertificate $true
This script will create a new Self-Signed certificate. Check if the certificate will be installed in the Local Computer\Personal Certificate store. Also check if the certificate is stored in the “FASTSearch\data\data_security\cert” folder.
Now that you have created a new certificate, start all Fast Services on the server. After they have started the ContentDistributor has to be validated. To validate the ContentDistributor you also have to run a script. You will have to run this script with the SharePoint Management Shell because this script loads some SharePoint CMD-lets.
Logon to the SharePoint server with the Farm Account. Open SharePoint Management Shell and run the following script:
.\securefastsearchconnector.ps1 -ssaName “name of Fast content Service Applcation” -userName “Osearch service account”
The Management Shell will display the certificate which was found within the certificate store. Press Enter to install this certificate.
Powershell will now try to validate the ContentDistributor. Also Powershell will restart the Osearch service.






