Tuesday, September 30, 2008

How to quickly get thumbprint of a cert without removing space?

In powershell, you can get the thumbprints of certs with this command:

Get-ChildItem -path cert:\localmachine\my

localmachine can be currentuser.
This command also list the subject clearly so that you can use winhttpcertcfg.exe easily.

To see the detail of a cert, use this command:

Get-ChildItem -path cert:\currentuser\my\EEBAC2D21C1E5B2E22070CC9547CB806EE98B9A8 | format-list -property *

No comments: