“您输入的密码不正确"将 .pfx 文件导入 Windows 证书存储区时 [英] "The password you entered is incorrect" when importing .pfx files to Windows certificate store

查看:212
本文介绍了“您输入的密码不正确"将 .pfx 文件导入 Windows 证书存储区时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它在 Windows 10 上运行良好,但是当我尝试在 Windows Server 2012 上导入相同的 .pfx 文件时,它失败并显示消息您输入的密码不正确".

It works fine on Windows 10, but when I try to import the same .pfx file on a Windows server 2012 it fails with the message "The password you entered is incorrect".

我使用 OpenSSL 3.0.0 创建我的证书、私钥和 .pfx 文件.我确定我使用了正确的密码.

I use OpenSSL 3.0.0 to create my certificate, private key and .pfx file. I am certain that I use the correct password.

为什么我无法在 Windows Server 2012 上导入 .pfx 文件?

Is there any reason why I would not be able to import a .pfx file on a Windows server 2012?

推荐答案

原来 OpenSSL 3.0.0 使用 AES256 作为默认值 用于在导出 .pfx 文件时加密私钥.

It turns out that OpenSSL 3.0.0 uses AES256 as a default to encrypt the private key when exporting a .pfx file.

根据 此论坛帖子.

当我尝试使用 OpenSSL 1.1.1 创建我的 .pfx 文件时,它运行良好.这显然是因为 OpenSSL 1.1.1 默认使用trippleDES 在导出 .pfx 文件时加密私钥.

When I tried to create my .pfx file with OpenSSL 1.1.1 it worked fine. This is apparently because OpenSSL 1.1.1 uses trippleDES as a default to encrypt the private key when exporting .pfx files.

这篇关于“您输入的密码不正确"将 .pfx 文件导入 Windows 证书存储区时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆