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.
↧