PFXEXPORTCERTSTOREEX出口私钥和公共钥匙
我已经使用PFXEXPORTCERTSTOREEX API成功地从Windows密钥存储中导出RSA证书的公共密钥和私钥。 是否可以使用Windows密钥商店的DSS和ECDSA证书导出相同的PFXExexportCertStoreex公共和私人键? 如果不是其他API,还需要使用哪些API?
提前致谢。
I have used PFXExportCertStoreEx API to successfully export public and private key of a RSA certificate from Windows key store.
Can the same PFXExportCertStoreEx be used to export public and private keys of DSS and ECDSA certificates from the Windows key store?
If not what other API needs to be used?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
经过几天的分析和讨论,最后我能够确定根本原因。它与特权有关。如果我使用Admin特权运行,则可以使用PFXEXPORTCERTSTOREEX从本地机器证书存储中提取ECDSA证书的密钥。
如果您不打算使用Admin特权,只需攻入证书经理或MMC并选择证书,请执行所有任务>管理私钥根据需要提供特权。
After days of analysis and discussions, finally I was able to identify the root cause. It is related to privileges. If I run with Admin privilege, I can use PFXExportCertStoreEx to extract keys for ECDSA certificate as well from the Local Machine certificate store.
If you do not intend to use Admin privilege, just take the certificate manager or mmc and select the certificate, take All tasks > Manage Private Keys give privileges as required.