x509certificate - SharePoint 2010 Error The Signature of the certificate cannot be verified -


my client wants sharepoint web application authenticated using siteminder claims based sts web service agent. when web app started , authentication provider selected web app redirect login page , on correct credentials should redirect site. happening on correct credentials sharepoint web application returns following error:

any clue might reason? happy assist if additional information required.

notsignaturevalid: signature of certificate cannot verified. 1048576: unknown error.

exception details:

system.identitymodel.tokens.securitytokenvalidationexception: notsignaturevalid: signature of certificate cannot verified. 1048576: unknown error.

source error:

an unhandled exception generated during execution of current web request. information regarding origin , location of exception can identified using exception stack trace below.

stack trace:

[securitytokenvalidationexception: notsignaturevalid: signature of certificate cannot verified. 1048576: unknown error.] microsoft.sharepoint.spimmutablecertificatevalidator.validate(x509certificate2 certificate) +181 microsoft.sharepoint.spcertificatevalidator.validate(x509certificate2 certificate) +260 microsoft.identitymodel.tokens.saml11.saml11securitytokenhandler.validatetoken(securitytoken token) +520

[securitytokenvalidationexception: id4257: x.509 certificate 'e=user@domain.com, cn=certname, ou=whq, o=csc, l=chantilly, s=virigina, c=us' validation failed token handler.] microsoft.identitymodel.tokens.saml11.saml11securitytokenhandler.validatetoken(securitytoken token) +1358733 microsoft.identitymodel.web.tokenreceiver.authenticatetoken(securitytoken token, boolean ensurebearertoken, string endpointuri) +118 microsoft.identitymodel.web.wsfederationauthenticationmodule.signinwithresponsemessage(httprequest request) +461 microsoft.identitymodel.web.wsfederationauthenticationmodule.onauthenticaterequest(object sender, eventargs args) +1099702 system.web.synceventexecutionstep.system.web.httpapplication.iexecutionstep.execute() +80 system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously) +171

solution time!

special @gtrig tipping me off real issue behind error.

why error

the error cause result of microsoft security patch (kb2661254) adding restriction certificate validation. patch requires certificate rsa key greater or equal 1024bits. given siteminder.cer contains 512bits rsa key. following link explain issue in detail.

http://blogs.technet.com/b/rmilne/archive/2012/09/03/important-upcoming-certificate-changes.aspx

the solution in detail here. http://support.microsoft.com/kb/2661254

but me adding following regedit key did trick. hkey_local_machine\software\microsoft\cryptography\oid\encodingtype 0\certdllcreatecertificatechainengine\config

minrsapubkeybitlength : decimal 512

to apply registry modification open command prompt (make sure user has admin privileges, else start command prompt administrator mode) , execute

certutil -setreg chain\minrsapubkeybitlength 512

however recommend reading through entire solution above link in depth find unique solution.

important: not recommended approach in client environment may possibly compromise security of server environment.

recommended solution have new certificate created @ least minimum key size of 1024 (although 2048 recommended)


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -