I need to get a list of all the certificates with a particular hash algorithm.
First I tried retrieving SignatureAlgorithm as follows:
Get-ChildItem -Recurse | select thumbprint, subject, SignatureAlgorithm
Which gave me System.Security.Cryptography.Oid as a value of SignatureAlgorithm column
I tried using FriendlyName
Get-ChildItem -Recurse | select thumbprint, subject, SignatureAlgorithm.FriendlyName
But the above returned blank as a value for SignatureAlgorithm
How can I retrieve the readable value of SignatureAlgorithm? And also how do I select all the SHA1 certificates using Powershell?