CRYPT_E_BAD_ENCODE (0X80092002) Fix That Actually Works
This error usually means Windows can't read a corrupted or incompatible certificate. The real fix is resetting the crypt service and clearing the cache.
Yeah, this error is a pain. You're trying to install something, update Windows, or open an old Office file, and boom — 0X80092002. Let's get to it.
The Quick Fix: Reset the Cryptographic Service
- Open Command Prompt as Administrator. Win + X, then Command Prompt (Admin) or Windows PowerShell (Admin).
- Stop the Cryptographic Services:
net stop cryptsvc - Rename the catroot2 folder (don't delete it, you'll regret it):
ren C:\Windows\System32\catroot2 catroot2.old - Restart the service:
net start cryptsvc - Re-run whatever triggered the error. That's usually it.
This works because Windows caches certificate validation data in catroot2. When that cache corrupts — often after a failed update or a bad certificate installation — every crypto operation fails. Renaming it forces Windows to rebuild the cache fresh.
Why This Happens
The culprit here is almost always a corrupted certificate store or a failed Windows Update that left the crypto service in a bad state. I see it most often after someone uses a third-party registry cleaner or force-kills a Windows Update mid-process. The crypt32.dll can't read the corrupted cache, so it throws 0X80092002.
Don't bother reinstalling Windows for this. That's like burning down your house because a lightbulb died.
If That Didn't Work: Check for Corrupted Certificates
Sometimes the cache isn't the issue — it's a specific certificate in your personal store. Here's how to check:
- Open certlm.msc (Local Machine certificates).
- Expand Personal > Certificates.
- Look for any certificate with a red X or a yellow warning triangle. These are corrupted or expired.
- Right-click and delete them. If it's a system cert, back it up first: right-click, All Tasks, Export.
Also check Trusted Root Certification Authorities > Certificates. If you see a cert with an issue date in the future or one that's obviously mangled, delete it and re-run Windows Update to re-download it.
Less Common Scenarios
Office 2016/2019 Activation
Some older Office versions (especially 2016) hit this error during activation. The fix is different: clear the Office licensing cache.
- Close all Office apps.
- Open Command Prompt as Admin.
- Run:
Lists the installed product key.cd /d "%ProgramFiles%\Microsoft Office\Office16" cscript ospp.vbs /dstatus - Then clear the cache:
cscript ospp.vbs /unpkey:<Last5CharsOfKey> - Re-activate from Settings.
Windows Update Failing with 0X80092002
If you see this error in the Windows Update log (C:\Windows\WindowsUpdate.log), the problem is usually a corrupt update component.
- Run the Windows Update Troubleshooter (Settings > Update & Security > Troubleshoot).
- If that doesn't help, manually reset the update components using Microsoft's script:
Download the "Windows Update Reset" script from Microsoft Support. The official one is safe.
Prevention: Don't Let This Happen Again
Three rules:
- Never kill Windows Update mid-process. If it's stuck, use the troubleshooter or restart the service cleanly (
net stop wuauserv,net start wuauserv). - Stay away from registry cleaners. They delete critical entries like a toddler with a hammer. I've seen them strip out certificate trust data more times than I can count.
- Back up your certificate store before making changes. From certlm.msc, right-click Personal, All Tasks, Export — save it as a PFX with a password.
That's it. You should be up and running in under 5 minutes. If you're still stuck after all this, it's probably a deeper system file corruption — run sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth from an admin command prompt. But that's rare.
Was this solution helpful?