none
System.Security.Cryptography.CryptographicException when creating sp2010 farm on win7 for development enviroment RRS feed

  • Question

  • i installed a sp2010 foundation server on win7  for DEV. but  i failed to create farm with production configuration wizard what follows is the error

    11/09/2019 18:13:08  9  ERR                    Task configdb has failed with an unknown exception 
    11/09/2019 18:13:09  9  ERR                    Exception: System.Security.Cryptography.CryptographicException: 指定了无效的提供程序类型。

       at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
       at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle)
       at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()
       at System.Security.Cryptography.RSACryptoServiceProvider..ctor(Int32 dwKeySize, CspParameters parameters, Boolean useDefaultKeySize)
       at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PrivateKey()
       at Microsoft.SharePoint.Utilities.CertificateManager.ReleaseCertificate(X509Certificate2 certificate)
       at Microsoft.SharePoint.Administration.SPCertificateAuthority.GetRootCertificate(Boolean includePrivateKey)
       at Microsoft.SharePoint.Administration.SPTrustedRootAuthorityManager.Provision()
       at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuilder configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, IdentityType identityType, String farmUser, SecureString farmPassword, SecureString masterPassphrase)
       at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuilder configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, String farmUser, SecureString farmPassword, SecureString masterPassphrase)
       at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.CreateOrConnectConfigDb()
       at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.Run()
       at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()

    And i can see audit failure on windows event log:

    日志名称:          Security
    来源:            Microsoft-Windows-Security-Auditing
    日期:            2019/11/9 18:13:08
    事件 ID:         5061
    任务类别:          系统完整性
    级别:            信息
    关键字:           审核失败
    用户:            暂缺
    计算机:           asus7.spdev.net
    描述:
    加密操作。

    主题:
    安全 ID: SPDEV\administrator
    帐户名称: Administrator
    帐户域: SPDEV
    登录 ID: 0x2c8a8

    加密参数:
    提供程序名称: Microsoft Software Key Storage Provider
    算法名称: 不可用。
    密钥名称: CLR{BE6F19A5-28F0-409B-83EB-77A42A5587B9}
    密钥类型: 计算机密钥。

    加密操作:
    操作: 打开密钥。
    返回代码: 0x80090011
    事件 Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-A5BA-3E3B0328C30D}" />
        <EventID>5061</EventID>
        <Version>0</Version>
        <Level>0</Level>
        <Task>12290</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8010000000000000</Keywords>
        <TimeCreated SystemTime="2019-11-09T10:13:08.952971900Z" />
        <EventRecordID>25284</EventRecordID>
        <Correlation />
        <Execution ProcessID="564" ThreadID="680" />
        <Channel>Security</Channel>
        <Computer>asus7.spdev.net</Computer>
        <Security />
      </System>
      <EventData>
        <Data Name="SubjectUserSid">S-1-5-21-596525932-3857338158-1200943804-500</Data>
        <Data Name="SubjectUserName">Administrator</Data>
        <Data Name="SubjectDomainName">SPDEV</Data>
        <Data Name="SubjectLogonId">0x2c8a8</Data>
        <Data Name="ProviderName">Microsoft Software Key Storage Provider</Data>
        <Data Name="AlgorithmName">%%2432</Data>
        <Data Name="KeyName">CLR{BE6F19A5-28F0-409B-83EB-77A42A5587B9}</Data>
        <Data Name="KeyType">%%2499</Data>
        <Data Name="Operation">%%2480</Data>
        <Data Name="ReturnCode">0x80090011</Data>
      </EventData>
    </Event>

    If i change server role from APPLICATION to SINGLESERVER in registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\WSS\ServerRole   and run production configuration wizard, the error will be:

    11/09/2019 18:36:33  11  ERR                Task configdb has failed with an unknown exception 
    11/09/2019 18:36:33  11  ERR                Exception: System.Security.Cryptography.CryptographicException: 数据无效。

       at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
       at Microsoft.SharePoint.Administration.SPCredentialManager.GetMasterKey(SPFarm farm)
       at Microsoft.SharePoint.Administration.SPCredentialManager.set_MasterKey(Byte[] value)
       at Microsoft.SharePoint.Administration.SPCredentialManager.CreateMasterKey(Boolean generateKeyIfNeeded, SecureString sstrPassphrase, Boolean localOnly)
       at Microsoft.SharePoint.Administration.SPFarm.Create(SqlConnectionStringBuilder configurationDatabase, SqlConnectionStringBuilder administrationContentDatabase, IdentityType identityType, String farmUser, SecureString farmPassword, SecureString masterPassphrase)
       at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.CreateOrConnectConfigDb()
       at Microsoft.SharePoint.PostSetupConfiguration.ConfigurationDatabaseTask.Run()
       at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask()

    The windows account is in domain admin as well as the Administrator group for Win7

    • Edited by GuYuming Saturday, November 9, 2019 11:55 AM
    Saturday, November 9, 2019 11:48 AM

All replies