使用CertUtil从pfx文件导入证书到用户的个人存储中相对容易:
certutil –f –p [certificate_password] –importpfx C:\[certificate_path_and_name].pfx
Run Code Online (Sandbox Code Playgroud)
但这最终会在当前用户的个人存储中出现.我需要在LocalMachine上的TrustedPeople中使用它.
有什么方法可以从命令行执行此操作,通过调用certutil importpfx上的不同参数,使用另一个certutil命令或其他实用程序?Powershell是另一种可能性,虽然我对此并不了解.
干杯,马特