title: Why does Spring SAML SP need a keystore and related key configuration?
body: <p>I have a spring boot application and planning to use Okta, referring to the below 2 samples, what is the purpose of configuring keystore for service provider? </p>
  
  <p><a href="https://github.com/spring-projects/spring-security-saml-dsl/blob/master/samples/spring-security-saml-dsl-sample/src/main/java/com/example/SecurityConfiguration.java" rel="nofollow noreferrer">https://github.com/spring-projects/spring-security-saml-dsl/blob/master/samples/spring-security-saml-dsl-sample/src/main/java/com/example/SecurityConfiguration.java</a></p>
  
  <p><a href="https://github.com/oktadeveloper/okta-spring-boot-saml-example/blob/master/src/main/java/com/example/demo/SecurityConfiguration.java" rel="nofollow noreferrer">https://github.com/oktadeveloper/okta-spring-boot-saml-example/blob/master/src/main/java/com/example/demo/SecurityConfiguration.java</a></p>