我正在关注 Sustainsys 的 MVC 实现以进行 SAML 2.0 身份验证。我的证书有问题,并且存在运行时错误
无法解析属性“x509FindType”的值。
我在本地机器的受信任的根证书颁发机构中安装了证书 - 在 adfs aserver 和我运行代码的本地开发机器中。所以我不明白我在这里做错了什么,我对 SustainSys 还很陌生,所以我不确定我是否遗漏了什么。这是我的 SAML2 的 Web 配置片段
<sustainsys.saml2 entityId="https://localhost:44324/Home" returnUrl="https://localhost:44324/">
<identityProviders>
<add entityId="http://serverurl/adfs/services/trust" signOnUrl="https://serverurl/adfs/ls/IdpInitiatedSignon.aspx" metadataLocation="serverurl/FederationMetadata/2007-06/FederationMetadata.xml" allowUnsolicitedAuthnResponse="true" binding="HttpRedirect" wantAuthnRequestsSigned="true">
<signingCertificate storeName="Root" storeLocation="LocalMachine" x509FindType="FindByThumbprint" findValue="817FBA3E441B6569CCE775B6BDFE0E0FF813B2BB" />
<!--<signingCertificate fileName="~/App_Data/adfssigningcert.cer" />-->
</add>
</identityProviders>
</sustainsys.saml2>
我尝试使用,fileName
但它给了我一个差异错误
“根据验证程序,远程证书无效”