Hi Scott! I hope you are doing well.
From your description, the private key associated with the renewed certificate is not marked as exportable, preventing you from creating a PFX file (which includes both the certificate and the private key). This often happens when the certificate is renewed directly on the server using the private key but without selecting the option to make it exportable.
Additionally, the way the certificate is renewed (directly in IIS or via the Certification Authority - CA) can influence how the private key is handled.
Best Practices for Renewing WSUS Certificates:
- Renew Through the Certification Authority (CA): The best practice for renewing the WSUS certificate is to start the process directly with the Certification Authority (CA). This gives you better control over certificate properties, such as private key exportability. Steps:
- On the CA server, request a new certificate or renew the existing one.
- Ensure you select the option to allow private key exportability when configuring the certificate template or request.
- Once issued, export the certificate as a PFX (with the private key) for the WSUS server.
- Validation and Configuration on WSUS:
- Import the renewed certificate into WSUS (either in IIS or directly in the WSUS console).
- Configure WSUS to use the new certificate for SSL communication.
- Deployment via Group Policy (GPO):
- Export the certificate as a PFX (if the private key is exportable).
- Import the PFX into the Trusted Certification Authorities and Trusted Computers stores in your GPO.
- Ensure the new certificate is properly distributed to all domain-joined machines.
How to Resolve the Current Issue:
Since the renewed certificate is tied to a private key but cannot be exported as a PFX, you have a few options:
Option 1: Renew Properly Through the CA
- Request the certificate renewal directly from the CA, ensuring the private key exportability option is selected.
- Remove the incorrectly renewed certificate and import the new one into WSUS.
Option 2: Work with the Existing Certificate
- Although the private key is currently not exportable, check if there is any policy or configuration that restricted this option during the renewal process.
- Use the certutil tool to inspect and potentially adjust certificate properties (although forcing private key export is generally not recommended).
Option 3: Recreate a New WSUS Certificate
- If the above steps are not feasible, consider creating a new certificate from scratch in the CA, ensuring the private key is exportable, and reconfiguring WSUS with it.