Last active
May 31, 2018 06:16
-
-
Save loslch/93d86a3240cda9e2a5993518a083c49b to your computer and use it in GitHub Desktop.
Import "root" certificates on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM download authroot.stl from http://ctldl.windowsupdate.com/msdownload/update/v3/static/trustedr/en/authrootstl.cab | |
certutil -addstore -f root authroot.stl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[reflection.assembly]::LoadWithPartialName("System.Security") | |
$certs = new-object system.security.cryptography.x509certificates.x509certificate2collection | |
$certs.import("C:\Users\Hun\Downloads\root_certs.sst") | |
$store = new-object system.security.cryptography.X509Certificates.X509Store("Root", "LocalMachine") | |
$store.Open([System.Security.Cryptography.X509Certificates.OpenFlags]"MaxAllowed") | |
$store.AddRange($certs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ref: http://woshub.com/updating-trusted-root-certificates-in-windows-10#h2_3