This project is read-only.

Return thumbprint from New-SelfSignedCertificateEx


It would be great if New-SelfSignedCertificateEx could return a unique/identifying value such as thumbprint. Currently you have to use Get-ChildItem to query for the newly created certificate, which may return multiple items if there are one/more certificates in a given store with the same -DnsName value.


Camelot wrote Sep 11, 2016 at 8:15 PM

I made appropriate changes in sources:

now the command returns an instance of X509Certificate2.

BryanLa wrote Sep 12, 2016 at 5:06 PM

Awesome! Thanks so much for the quick response on this!