Import pfx file into particular certificate store from command line

后端 未结 7 1358
时光取名叫无心
时光取名叫无心 2021-01-30 17:12

It\'s relatively easy to import a certificate into the user\'s personal store from a pfx file by using CertUtil:

certutil –f –p [certificate_password] –importpfx         


        
7条回答
  •  一向
    一向 (楼主)
    2021-01-30 17:35

    Check these links: http://www.orcsweb.com/blog/james/powershell-ing-on-windows-server-how-to-import-certificates-using-powershell/

    Import-Certificate: http://poshcode.org/1937

    You can do something like:

    dir -Path C:\Certs -Filter *.cer | Import-Certificate -CertFile $_ -StoreNames AuthRoot, Root -LocalMachine -Verbose
    

提交回复
热议问题