Skip to content

Instantly share code, notes, and snippets.

@coderhh
Created June 22, 2020 14:02
Show Gist options
  • Save coderhh/12139c1ddd0a66d83ca8df9e3c179040 to your computer and use it in GitHub Desktop.
Save coderhh/12139c1ddd0a66d83ca8df9e3c179040 to your computer and use it in GitHub Desktop.
powershell script to export root CA
$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