PowershellでWindowsの証明書情報を確認する
PowershellでWindowsの証明書情報を確認するには、証明書ストアを指定してGet-ChildItem(ailias:ls)を実行する。
> ls Cert:\
Location : CurrentUser
StoreNames : {SmartCardRoot, Root, Trust, AuthRoot...}
Location : LocalMachine
StoreNames : {TrustedPublisher, ClientAuthIssuer, Remote Desktop, Root...}
> ls Cert:\CurrentUser
Name : SmartCardRoot
Name : Root
Name : Trust
Name : AuthRoot
Name : CA
Name : UserDS
Name : Disallowed
Name : My
Name : TrustedPeople
Name : TrustedPublisher
Name : ADDRESSBOOK
Name : ClientAuthIssuer
> ls Cert:\CurrentUser\My
ディレクトリ: Microsoft.PowerShell.Security\Certificate::CurrentUser\My
Thumbprint Subject
---------- -------
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx CN=xxxx
>