与kennisnet登台环境的SAML HTTPS连接

时间:2018-04-24 11:14:14

标签: spring-saml

我从https://github.com/vdenotaris/spring-boot-security-saml-sample获取了示例webapp,它正在运行文件。后来。我试图连接kennisnet登台环境。

Kennisnet详情

https://developers.wiki.kennisnet.nl/index.php?title=KNF:Hoofdpagina/en

我更新了可从此网址https://hub-s.entree.kennisnet.nl/openaselect/profiles/saml2/

下载的元数据

我使用以下命令生成了smalKeyStore.jks

  1. keytool -genkey -alias tomcat -keyalg RSA -keystore samlKeyStore.jks
  2. keytool -importkeystore -srckeystore samlKeyStore.jks -destkeystore     samlKeyStore.jks -deststoretype pkcs12
  3. 我在stackoverflow中跟踪了所有Spring SAML https线程,但无法弄清楚这个问题。

    日志: enter image description here

1 个答案:

答案 0 :(得分:0)

将证书添加到JDK,以便您的应用程序可以从URL https://aselect-s.entree.kennisnet.nl/openaselect/profiles/saml2获取元数据。

这些是您需要填写的步骤:

  1. 下载 aselect-s.entree.kennisnet.nl
  2. 的证书
  3. 使用以下命令将证书导入JDK / JRE:

    keytool -keystore #path to java_home#/ lib / security / cacerts -importcert -alias #anything relevent#-file #path to certificate#

  4. 确保您的服务器使用相同的java_home导入证书,在导入之前验证证书中的主题名称,它必须是" CN = * .entree.kennisnet.nl"

    1. 重新启动服务器。