2013-08-07 38 views
1

尝试导入的文件无法从文件导入RSA密钥,称它已经存在:使用ASPNET_REGIIS

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! 

回答

2

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

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

相关问题