我试图find一个脚本安装证书的方法。
进入“右键 – >安装证书”,在IE的证书视图中显示“下级证书颁发机构”下的证书
如果findcertutil.exe命令,
certutil.exe -addstore -enterprise <storename>
我的问题是你如何列出/找出有效的商店名称?
find一个有效的商店名称是:
ca -> Specifies certificates in the Intermediate Certification Authorities store my -> Specifies certificates issued to the current user root -> Specifies certificates in the Trusted Root Certification Authorities store spc -> Specifies software publisher certificates user_created_store -> Specifies the name of a user-created certificate store
也:
顺便说一下,“SPC”不适合我
我想列表在这里: http : //msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.storename.aspx
“root”和“trust”在用户上下文中无效(使用-user开关时)
您可以快速获取Powershell中的列表:
PS> ls Cert:\LocalMachine Name : TrustedPublisher Name : ClientAuthIssuer Name : Remote Desktop Name : Root Name : TrustedDevices Name : WebHosting Name : CA Name : REQUEST Name : AuthRoot Name : TrustedPeople Name : My Name : SmartCardRoot Name : Trust Name : Disallowed