SSL configuration issue with Spring-SAML

前端 未结 2 534
栀梦
栀梦 2021-02-14 03:46

I\'m trying to set up a SP based on \"spring-security-saml2-sample\", but when I deploy the WAR file on Tomcat I get the following exception:

Initialization of m         


        
2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-14 04:03

    By default Spring SAML doesn't use the samlKeystore.jks for verification of calls done with the HTTPMetadataProvider. This means that you will need to import the certificate of the HTTPS endpoint https://dominio.com/fed/idp/metadata to your JDK (typically jre/lib/security/cacerts).

    There's also another option. I've just pushed a commit which will allow you to use the samlKeystore.jks also for these calls by including the following bean:

    
        
        
        
            
                https
                
                    
                    
                        
                    
                    
                
            
        
    
    

    You will need to update to the latest trunk for the TLSProtocolSocketFactory to be available.

提交回复
热议问题