我尝试导入 *.pfx 证书,但收到有关“密码错误”的错误消息。该错误仅出现在某些系统上。
我已经在几台 Windows 10 计算机和一台 Windows Server 2016 上对此进行了测试。
我还尝试使用 Powershell 导入证书(使用下面的 cmdlet),也导致相同的错误:
$mypwd = ConvertTo-SecureString -String "some-password" -Force –AsPlainText
Import-PfxCertificate –FilePath C:\tmp\Client.pfx cert:\localMachine\my -Password $mypwd
Run Code Online (Sandbox Code Playgroud)
Import-PfxCertificate :您尝试导入的 PFX 文件需要不同的密码或它受保护的 Active Directory 主体的成员身份。