Repro steps:
- Follow the steps in
readme.md to setup IdentityProviderDemo and WebsiteDemo.
- Launch
IdentityProviderDemo and WebsiteDemo from Visual Studio.
- Attempt to login on
IdentityProviderDemo from WebsiteDemo.
Login fails to complete on the IdP side:
[Exception: Could not encrypt. No valid certificates found.]
IdentityProviderDemo.SignonForm.CreateAssertionResponse(User user) in C:\Users\rh\source\repos\OIOSAML.Net\src\dk.nita.saml20\IdentityProviderDemo\SignonForm.aspx.cs:236
IdentityProviderDemo.SignonForm.OnInit(EventArgs e) in C:\Users\rh\source\repos\OIOSAML.Net\src\dk.nita.saml20\IdentityProviderDemo\SignonForm.aspx.cs:74
System.Web.UI.Control.InitRecursive(Control namingContainer) +454
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1714
due to
Validating chain with online revocation check failed for certificate 'A402BB172929AE0D0ADA62F6864329C35DC29483': System.IdentityModel.Tokens.SecurityTokenValidationException: The X.509 certificate SERIALNUMBER=CVR:34051178-FID:80719473 + CN=SP and WSC (Oiosaml-net.dk TEST) (funktionscertifikat), O=Digitaliseringsstyrelsen // CVR:34051178, C=DK chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
The IdP cannot verify the service provider's certificate and thus cannot sign the response to the SP.
Repro steps:
readme.mdto setupIdentityProviderDemoandWebsiteDemo.IdentityProviderDemoandWebsiteDemofrom Visual Studio.IdentityProviderDemofromWebsiteDemo.Login fails to complete on the IdP side:
due to
The IdP cannot verify the service provider's certificate and thus cannot sign the response to the SP.