web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

The private key does not support the exchange KeySpec

(0) ShareShare
ReportReport
Posted on by

Hi,

my case scenario is composed from:

2-Server DC/ADFS 3.01 with Windows 2012 R2

1-Server CRM 2016 Upd 1

1-Server SQL Server 2014

All working correct until I try configure ADFS and claim autentication.

Now When I try to access to URL https://crminternals.<fqdndomain> adfs pass my request but the web server CRM show an error:

---------------

Event code: 3005

Event message: An unhandled exception has occurred.

Event time: 6/8/2016 10:03:18 AM

Event time (UTC): 6/8/2016 8:03:18 AM

Event ID: 48625491ee90458baf23fa875b068149

Event sequence: 4

Event occurrence: 1

Event detail code: 0

Application information:

Application domain: /LM/W3SVC/2/ROOT-1-131098462998654420

Trust level: Full

Application Virtual Path: /

Application Path: E:\Program Files\Microsoft Dynamics CRM\CRMWeb\

Machine name: SRVCRM01

Process information:

Process ID: 2448

Process name: w3wp.exe

Account name: NT AUTHORITY\NETWORK SERVICE

Exception information:

Exception type: NotSupportedException

Exception message: The private key does not support the exchange KeySpec.

at System.IdentityModel.Tokens.X509AsymmetricSecurityKey.DecryptKey(String algorithm, Byte[] keyData)

at System.IdentityModel.Selectors.SecurityTokenResolver.SimpleTokenResolver.TryResolveSecurityKeyCore(SecurityKeyIdentifierClause keyIdentifierClause, SecurityKey& key)

at System.IdentityModel.Tokens.EncryptedSecurityTokenHandler.ReadToken(XmlReader reader)

at System.IdentityModel.Tokens.SecurityTokenHandlerCollection.ReadToken(XmlReader reader)

at System.IdentityModel.Services.TokenReceiver.ReadToken(String tokenXml, XmlDictionaryReaderQuotas readerQuotas, FederationConfiguration federationConfiguration)

at System.IdentityModel.Services.WSFederationAuthenticationModule.SignInWithResponseMessage(HttpRequestBase request)

at System.IdentityModel.Services.WSFederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)

at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)

at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Request information:

Request URL: https://crminternals.&lt;fqdndomain>.it:443/default.aspx

Request path: /default.aspx

User host address: 192.168.241.33

User:

Is authenticated: False

Authentication Type:

Thread account name: NT AUTHORITY\NETWORK SERVICE

Thread information:

Thread ID: 7

Thread account name: NT AUTHORITY\NETWORK SERVICE

Is impersonating: False

Stack trace: at System.IdentityModel.Tokens.X509AsymmetricSecurityKey.DecryptKey(String algorithm, Byte[] keyData)

at System.IdentityModel.Selectors.SecurityTokenResolver.SimpleTokenResolver.TryResolveSecurityKeyCore(SecurityKeyIdentifierClause keyIdentifierClause, SecurityKey& key)

at System.IdentityModel.Tokens.EncryptedSecurityTokenHandler.ReadToken(XmlReader reader)

at System.IdentityModel.Tokens.SecurityTokenHandlerCollection.ReadToken(XmlReader reader)

at System.IdentityModel.Services.TokenReceiver.ReadToken(String tokenXml, XmlDictionaryReaderQuotas readerQuotas, FederationConfiguration federationConfiguration)

at System.IdentityModel.Services.WSFederationAuthenticationModule.SignInWithResponseMessage(HttpRequestBase request)

at System.IdentityModel.Services.WSFederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)

at Microsoft.Crm.Authentication.Claims.CrmFederatedAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args)

at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()

at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

This error seems related from permission issue with key encryption ADFS but i have already configure Access of private key for CRMAppPool and Service Account ADFS but the error is the same above.

Please help me resolving this issue because i don't undestand where is the error.

  

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vipin J Profile Picture
    1,603 on at

    Hi Stefano,

    Its most likely that the wildcard certificate that you are using is not Exchange supported. You can create a dummy certificate and give a try.

    Refer here to create a certificate.

    https://vjcity.blogspot.com/2019/02/dynamic-365-crm-private-key-does-not.html

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans