【问题标题】:File not found error when creating a private key using CERTENROLLLib使用 CERTENROLLLib 创建私钥时找不到文件错误
【发布时间】:2012-01-28 12:22:06
【问题描述】:

System.IO.FileNotFoundException: CertEnroll::CX509PrivateKey::Create: 该系统找不到指定的文件。 0x80070002 (WIN32: 2)

上述错误是我尝试使用 CertEnroll.dll 中的 CX509PrivateKeyClass 类创建私钥以生成 CSR 时引发的异常。

这似乎只发生在我尝试执行部署在 Windows 2008 服务器上的代码时。

它在 Windows 7 下运行良好。

【问题讨论】:

标签: .net windows-server-2008 x509certificate certenroll


【解决方案1】:

这是因为您没有调用 COM 的适当权限。我不确定最低权限,但本地管理员应该可以工作。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-27
    • 1970-01-01
    • 2016-09-15
    • 2020-11-27
    相关资源
    最近更新 更多