【问题标题】:ComponentSpace SAML2.0 Library: Invalid algorithm specified. (Certificate algorithm: RSASHA256)ComponentSpace SAML2.0 库:指定的算法无效。 (证书算法:RSASHA256)
【发布时间】:2016-12-21 11:01:22
【问题描述】:

我已经使用组件空间 SAML2.0 设置了 IDP

服务提供者也在组件空间 SAML2.0 上

证书算法:RSASHA256

我们没有服务提供商证书详细信息,因为我们发送的 SAMLResponse 没有 AuthRequest

<IdentityProvider Name="http://localhost/ExampleIdentityProvider"
                Description="Example Identity Provider"
                LocalCertificateFile="Certificates\idp.pfx"
                LocalCertificatePassword="password"/>

<PartnerServiceProviders>
<!-- Web forms example -->
<PartnerServiceProvider Name="abc"
                        Description="Example Service Provider"
                        WantAuthnRequestSigned="false"
                        SignSAMLResponse="true"
                        SignAssertion="false"
                        EncryptAssertion="false"
                        AssertionConsumerServiceUrl="https://abc.xyz/sso/saml/servicerequest"
                        SingleLogoutServiceUrl="http://abc.xyz/sso/saml"
                        PartnerCertificateFile="Certificates\sp.cer"/>

我在我们这边发送断言时遇到这些错误。

CryptographicException:指定的算法无效。
SAMLSignatureException: 生成 XML 签名失败。

【问题讨论】:

    标签: asp.net single-sign-on component-space


    【解决方案1】:

    如果您使用我们在示例中包含的 idp.pfx 文件,您是否会遇到同样的错误? 如果不是,我怀疑您的私钥没有指定正确的加密服务提供商 (CSP) 来支持 SHA-256 签名生成。 请参阅以下文章,该文章解释了如何指定正确的 CSP。

    http://www.componentspace.com/Forums/1578/SHA256-and-Converting-the-Cryptographic-Service-Provider-Type

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-30
      • 2019-05-29
      • 2020-01-12
      • 1970-01-01
      • 1970-01-01
      • 2019-04-06
      • 1970-01-01
      • 2012-07-19
      相关资源
      最近更新 更多