1. 首页
  2. 数据库
  3. 其它
  4. Powershell实现导入安装证书功能脚本分享

Powershell实现导入安装证书功能脚本分享

上传者: 2021-01-30 03:28:14上传 PDF文件 25.16KB 热度 12次
支持所有版本。 通常从文件加载一个证书并且安装它到指定的库。可以使用下面的脚本: 代码如下: $pfxpath = ‘C:\temp\test.pfx’ $password = ‘test’ [System.Security.Cryptography.X509Certificates.StoreLocation]$Store = ‘CurrentUser’ $StoreName = ‘root’ Add-Type -AssemblyName System.Security $certificate = New-Object System.Security.Cryptography.X50
下载地址
用户评论