In PowerShell, I want to use New-Object
to call a single-argument .Net constructor new X509Certificate2(byte[] byteArray)
. The problem is when I do this with a byte array from powershell, I get
See Question&Answers more detail:osNew-Object : Cannot find an overload for "X509Certificate2" and the argument count: "516".