首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用Apache AuthnRequest模块对mod_mellon进行签名

如何使用Apache AuthnRequest模块对mod_mellon进行签名
EN

Stack Overflow用户
提问于 2019-06-27 14:45:54
回答 1查看 506关注 0票数 0

我们要求在发送到国内流离失所者之前签署SAML AuthnRequest。我们使用Apache模块mod_mellon来实现。根据文档,我们在SP元数据xml文件中添加了以下属性,但仍未对请求进行签名。

AuthnRequestsSigned="true"

以下SP元数据供参考。

代码语言:javascript
复制
<EntityDescriptor entityID="https://foo.com" xmlns="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <SPSSODescriptor AuthnRequestsSigned="true" WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol">
    <KeyDescriptor use="signing">
      <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
        <ds:X509Data>
          <ds:X509Certificate>MIIC.....</ds:X509Certificate>
        </ds:X509Data>
      </ds:KeyInfo>
    </KeyDescriptor>
    <SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://foo.com/mellon/logout"/>
    <AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://foo.com/mellon/postResponse" index="0"/>
</SPSSODescriptor>
</EntityDescriptor>

当我们访问应用程序时,请求仍然没有签名。如果遇到类似的问题,有人能帮忙吗?

谢谢

EN

回答 1

Stack Overflow用户

发布于 2019-06-28 12:57:08

签名是用私钥创建的,而不是用公钥创建的。

这里不使用SP元数据。

您需要在mellon配置中定义私钥。

例如。

代码语言:javascript
复制
MellonSPPrivateKeyFile /etc/apache2/mellon/ssotest.key

请参阅mellon

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56793589

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档