【问题标题】:Importing RSA Keys from file using aspnet_regiis使用 aspnet_regiis 从文件中导入 RSA 密钥
【发布时间】:2013-08-07 11:42:15
【问题描述】:

尝试导入文件失败,说它已经存在:

C:\Windows\system32>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis
   -pi "MyRsaKey" c:\key.xml
   Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
   Administration utility to install and uninstall ASP.NET on the local machine.
   Copyright (C) Microsoft Corporation.  All rights reserved.
   Importing RSA Keys from file..
   Object already exists.
   Failed!

但是删除失败,说找不到:

C:\Windows\system32>C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis
   -pz "MyRsaKey"
   Microsoft (R) ASP.NET RegIIS version 4.0.30319.17929
   Administration utility to install and uninstall ASP.NET on the local machine.
   Copyright (C) Microsoft Corporation.  All rights reserved.
   Deleting RSA Key container...
   The RSA key container was not found.
   Failed!

【问题讨论】:

    标签: aspnet-regiis.exe


    【解决方案1】:

    问题原来与“C:\Users\All Users\Microsoft\Crypto\RSA\MachineKeys”文件夹的权限有关。

    确保使用属于计算机上管理员组的用户执行命令,并且管理员组是该文件夹的所有者,从而使这些命令能够成功执行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-07-10
      • 1970-01-01
      • 1970-01-01
      • 2017-10-18
      • 1970-01-01
      • 2010-12-17
      • 2010-10-21
      • 2020-03-20
      相关资源
      最近更新 更多