To replace an existing AD FS 2.0 Server service certificate, run the following multiple steps.
Installing the new certificate in the local computer certificate store
Install the new certificate into the local computer certificate store. To do this, follow these steps:
- Start -> Run
- Enter MMC and hit Enter key
- On the File menu, click Add/Remove Snap-in.
- In the Available snap-ins list, select Certificates, and then click Add. The Certificates Snap-in Wizard starts.
- Select Computer account, and then click Next.
- Select Local computer: (the computer this console is running on), and then click Finish.
- Click OK.
- Expand Console Root\Certificates (Local Computer)\Personal\Certificates.
- Right-click Certificates, click All Tasks, and then click Import.
Add a new certificate’s private key permissions AD FS service account. To do this, follow these steps:
Add to the AD FS service account the permissions to access the private key of the new certificate. To do this, follow these steps:
- With the local computer certificate store still open, select the certificate that was just imported.
- Right-click the certificate, click All Tasks, and then click Manage Private Keys.
- Add the account that is running the ADFS Service, and then give the account at least read permissions.
Note If you do not have the option to manage private keys, you may have to run the following command:
certutil -repairstore my *
Bind the new certificate to the AD FS website by using IIS Manager. To do this, follow these steps:
- Open the Internet Information Services (IIS) Manager snap-in.
- Browse to Default Web Site.
- Right-click Default Web Site, and then select Edit Bindings.
- Select HTTPS, and then click Edit.
- Select the correct certificate under the SSL certificate heading.
- Click OK, and then click Close.
Configure the AD FS Server service to use the new certificate. To do this, follow these steps:
- Open AD FS 2.0 Management.
- Browse to AD FS 2.0\Service\Certificates.
- Right-click Certificates, and then select Set Service Communications Certificate.
- Select the new certificate from the certificate selection UI.
- Click OK.
Note You may see a dialog box that contains the following message:
The certificate key length is less than 2048 bits. Certificates with key sizes less than 2048 bits might present a security risk and are not recommended. Do you want to continue?
After you read the message, click Yes. Another dialog box appears. It contains the following message:
Ensure that the private key for the chosen certificate is accessible to the service account for this Federation Service on each server in the farm.
This was already done in step 2. Click OK.