I could not get the .net core 3.1 Example working on windows 10 laptop. Both IDP and SP failed on reading the private key file. I even tried and regenerated the files and still could not get this working. An unhandled exception occurred while processing the request. WindowsCryptographicException: Access denied. Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags) SamlCertificateException: The X.509 certificate could not be loaded from the file d:\temp\SAMLv20.Core-evaluation\SAML for .NET Core\Examples\NET-Core-3.1\SSO\ExampleServiceProvider\certificates/sp.pfx. ComponentSpace.Saml2.Certificates.CertificateLoader.LoadCertificateFromFileAsync(string certificateFile, string certificatePassword) An unhandled exception occurred while processing the request. WindowsCryptographicException: Access denied. Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(byte[] rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags) SamlCertificateException: The X.509 certificate could not be loaded from the file d:\temp\SAMLv20.Core-evaluation\SAML for .NET Core\Examples\NET-Core-3.1\SSO\ExampleIdentityProvider\certificates/idp.pfx. ComponentSpace.Saml2.Certificates.CertificateLoader.LoadCertificateFromFileAsync(string certificateFile, string certificatePassword)
Regards, Prakash
|