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 7:15 PM

I made appropriate changes in sources: https://github.com/Crypt32/PSPKI/blob/master/PSPKI/Client/New-SelfSignedCertificateEx.ps1

now the command returns an instance of X509Certificate2.

BryanLa wrote Sep 12, 2016 at 4:06 PM

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