Overview
Let's Encrypt recently switched to start using a new intermediate certificates Let's Encrypt Authority X3 and Let's Encrypt Authority X4, these have replaced Let's Encrypt Authority X1 and Let's Encrypt Authority X2. Since they used the same keys with the new certificates, that enable support for XP, that can cause IIS to send the incorrect certificate in the chain.
Steps to Resolve
You need to remove the X1 and X2 (nobody should have the X2 cert anywhere but referencing it just to be sure) intermediate certificates from the certificate store.
Make sure you remove it as:
- Local Computer
- any user that ran Let's Encrypt
- the Local System (see Run MMC as Local System below)
For Local Computer:
Added a Certificates console to the Microsoft Management Console (MMC) following these instructions. Then navigate within that console to "Console Root > Certificates (Local Computer) > Intermediate Certification Authorities > Certificates" (shown below).
You can see in the screenshot that "Let's Encrypt Authority X1" was present there. So remove it.
Again, make sure you remove the X1 intermediate certificate from all certificate stores: the Local Computer, any user that ran Let's Encrypt, and as the Local System.
Run MMC as Local System
You need to download PsTools from SysInternals and run psexec -i -s mmc.exe, go to File -> Add-Remove Snap-in, choose Certificates and My user account.
Refresh the certificate chain in IIS
After the intermediate certificates have been removed, right click the web site in IIS Manager and choose Edit Bindings.... Then, select the https Type that the certificate is currently assigned to and click the Edit... button. Select some other SSL Certificate then re-select the desired certificate and click OK.
NOTES
- Since browsers may cache intermediates themselves, the most reliable test for the fix is an openssl command or using SSL Server Test, which among other things will say "This server's certificate chain is incomplete. Grade capped to B." and "Extra download" as in this screenshot:

- Removing the X1 intermediate certificate means that any other certificates on the server that depend on it will need to be renewed to switch to the X3 intermediate certificate, even if they have not reached their expiration. Only one or the other of the X1 and X3 intermediate certificates can be used on a Windows Server at the same time.
Remove directly from Registry
An alternative approach is to run the following to delete the X1 intermediate certificate from the Local System and Local Computer accounts:
reg delete HKU\S-1-5-18\Software\Microsoft\SystemCertificates\CA\Certificates\3EAE91937EC85D74483FF4B77B07B43E2AF36BF4 /f
reg delete HKLM\Software\Microsoft\SystemCertificates\CA\Certificates\3EAE91937EC85D74483FF4B77B07B43E2AF36BF4 /f
References
https://github.com/Lone-Coder/letsencrypt-win-simple/issues/177
Please refer to https://pkisharp.github.io/win-acme/ for up-to-date documentation.
