microsoft/SDN

Certificate export issue if the computer cerftificate was issued by enterprise PKI with property Exportabe=false

yyakushev opened this issue · 0 comments

We are trying to create a network controller in an environment with GPO policy that forces creation of computer certificates with disabled Exportable property.
The script failed on this line:

[System.io.file]::WriteAllBytes($TempFile.FullName, $cert.Export("PFX", $certpwdstring)) | out-null

Is it really necessary to export a certificate with a private key to add it to the trusted root location?