4

I'm on a mission to list the self-signed certificates ('issued by' and 'issued to' match) on my machine via an automated method. PowerShell is available for use. Preferably the results would be exported to a nice human-readable file.

3
  • Only way I know how to do it would be through MSDN. But maybe checkout this link on browsing certificates with PowerShell
    – RoraΖ
    Commented May 5, 2016 at 12:54
  • If relevant note the roots in the Windows store on [your] machine are not the only ones that will be trusted by most software on your Windows system e.g. IE/Edge Chrome and dotNET, but not Firefox and Java. Commented May 6, 2016 at 0:38
  • What RoraZ and Dave said. Also: the Windows cert stores are really more of a CACHE than an actual store proper. Windows trusts about 300 roots out of the box. And the local store/cache is updated via the Internet ON-DEMAND if you ever encounter one of them. See 1, 2. Commented May 6, 2016 at 5:21

1 Answer 1

6

Try “cert:” PsDrive

This here will be human readable. And (thanks to the semicolon as the delimiter) it will also open nicely in Excel:

dir cert: -Recurse | 
where {$_.subject -ne $null} | 
where {$_.subject -eq $_.issuer} | 
Export-Csv -NoTypeInformation -Encoding UTF8 -delimiter ';' -path selfsignedcerts.csv

Further reading

2
  • 1
    What am I doing wrong? Powershell is rejecting this. Commented Jul 3, 2018 at 21:52
  • @Loren: open a dedicated question for that and then give the the link. Commented Jul 5, 2018 at 6:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .