【发布时间】:2016-08-21 11:11:33
【问题描述】:
我已经基于此使用 FilesystemMetadataProvider 进行了实现:https://github.com/vdenotaris/spring-boot-security-saml-sample
为了使 SSL 握手对工件绑定起作用,我必须在 keyManager 使用的 java 密钥库中放置/信任 IDP 的 CA 证书。
我宁愿使用 jre 上的 cacerts 以防 IDP 更改 CA,但我无法找到任何要设置的属性,以便 Spring SAML 改为在其中查找。
这个答案也表明 cacert 被忽略了: Spring Security SAML - HTTPS connections
为什么在 Spring SAML 中忽略了 cacert?这对我来说似乎是一个不足。
我已检查 IDP 的 CA 是否在我的 jre 的 cacert 文件中。如果我从配置中删除与 TLS/socket 工厂相关的 bean,它仍然会失败。
【问题讨论】:
标签: spring-saml opensaml