Summary : failed to acquire cryptographic context : 0x8009000f in SharePoint,Steps to renew ssl certificate with “SELFSSL” for your Central admin site
Today, when I was trying to renew the SSL certificate for our SharePoint 2007 Central Admin site, on one of the servers, I got the following error message :
“failed to acquire cryptographic context : 0x8009000f”
Firstly to renew ssl certificate with “SELFSSL” for your Central admin site, you follow the steps below –
1. Stop the Office SharePoint Services Search service :
Open CMD and run “net stop osearch“
2. Change directory to where SELFSSL is located.
3. Renew the certificate :
Open CMD and run “SELFSSL /s:951338967 /v:1000”
4. Start the Office SharePoint Services Search service :
Open CMD and run “net start osearch”
5. Repeat the above steps on all SharePoint search servers.
In my case, when I ran Step #2 (after confirming that I am resetting ssl settings) I received the
“failed to acquire cryptographic context : 0x8009000f” error on my screen.
I googled for the cause of this error and finally after trying various results, I came to know the cause and the exact solution for this.
The Solution was pretty simple – On your server, Navigate to the MachineKeys folder (use the following path) and make sure you have access to all the subfolders and files in it.
MachineKeys Path – C:\Documents and Settings\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys
In my case I did not had access to one of the files in it.Since I had no one to assign me this access I had to delete the file to proceed further.Once that file was deleted I re-ran the command in Step# 2 and the SSL was successfully renewed.