Created
June 22, 2020 14:02
-
-
Save coderhh/12139c1ddd0a66d83ca8df9e3c179040 to your computer and use it in GitHub Desktop.
powershell script to export root CA
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
$geExternalRootCAExportPath = $proxyPath + "\certificate.cer" | |
Write-Host "Exporting GE External Root CA" | |
$certificate = Get-Item (Get-ChildItem -Path Cert:\CurrentUser\Root\ | Where-Object {$_.Subject -eq "CN=GE External Root CA 2.1, O=General Electric Company, C=US"}).PSPath | |
Export-Certificate -FilePath $geExternalRootCAExportPath -Cert $certificate[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment