This is a follow-up question to my previous thread: http://social.technet.microsoft.com/Forums/en-US/58ca3098-e06d-419a-9465-1ae7973e1c04/extract-p12-property-information-via-powershell?forum=ITCG
I understand how to extract the information for a certificate one-by-one, but I am wanting to write a powershell script that will step through a list of certificates and a list of their corresponding network passwords in order to extract their property data (i.e. expiration date, etc). Any suggestions?
jrv helped me with the first part of my question by providing this script:
PS C:\> $filename='c:\temp2\certs\jpd.cer'
PS C:\> $cert=[System.Security.Cryptography.X509Certificates.X509Certificate2]::CreateFromSignedFile($filename)
PS C:\scripts> $cert|fl
Happy Hunting!