为什么我的计算机上没有安装 .pfx 文件?
- 我测试生成以下链接的csr文件。
http://www.journaldev.com/223 /generate-a-certificate-signing-request-using-java-api
- 输出.key和.req文件通过这个使用这个java程序
为.req文件:::::::
BufferedOutputStream bos1 = new BufferedOutputStream( 新的 FileOutputStream(txtRequest.getText())); bos1.write(csr.getBytes());
对于 .key 文件 ::::::::
BufferedOutputStream bos2 = new BufferedOutputStream( 新的 FileOutputStream(txtPrivateKey.getText())); bos2.write(getPrivateKey().getEncoded());
- 使用其他C#应用程序生成.pfx。
- 我在计算机中安装此 .pfx 文件,发生错误...
发生内部错误。您正在导入的私钥可能需要您的系统上未安装的加密服务提供程序。
我不知道不知道如何修复这个错误。如果你知道,请给我解释一下。
谢谢。
- I tested to generate the csr file of the following link.
http://www.journaldev.com/223/generating-a-certificate-signing-request-using-java-api
- Output .key and .req file By this using this java program
for .req file ::::::::
BufferedOutputStream bos1 = new BufferedOutputStream(
new FileOutputStream(txtRequest.getText()));
bos1.write(csr.getBytes());
for .key file ::::::::
BufferedOutputStream bos2 = new BufferedOutputStream(
new FileOutputStream(txtPrivateKey.getText())); bos2.write(getPrivateKey().getEncoded());
- produce .pfx by using other C# application program.
- I install this .pfx file in my computer, error occurred...
An internal error occurred.The private key that you are importing might require a cryptographic service provider that is not installed on your system.
I don't know how to fix this error. If you know, please explain me.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您使用特定的加密服务提供程序 (csp) 生成证书时(如果您尚未设置 csp,那么它将是操作系统的默认 csp),并且如果该 csp(默认 csp 不同)在您导入证书的机器是 - 那么您将看到此行为。
当我在 xp 机器中生成它并将其导入到服务器 2008 中时,我看到了这种行为。我发现这两个操作系统中的默认 csp 是不同的。
我的解决方法是将其导入到服务器 2003 中,然后将其导出,然后将其导入到服务器 2008 中。我假设服务器 2008 在导入证书时比服务器 2003 具有更严格的验证。
When you generate your certificate using a particular cryptographic service provider (csp) (if you haven't set your csp, then it will be the default csp of the operating system) and if that csp (default csp is different) is missing in the machine that you import the certificate is, - then you will see this behaviour.
I have seen this behaviour when i generate it in my xp machine and import it in a server 2008. I found that the default csp's are different in these 2 operating systems.
My workaround is to to import it in to server 2003 and export it then import it in to server 2008. I assumed that server 2008 is having stricter validations than server 2003 while importing certificates.
您正在导入的私钥可能需要您的系统上未安装的加密服务提供程序。
在 Windows Server 2012 上,当系统卷(即您的
C:
驱动器磁盘空间不足。The private key that you are importing might require a cryptographic service provider that is not installed on your system.
On Windows Server 2012, this error occurs when the system volume is full, i.e. your
C:
drive is out of disk space.