Skip to content
Snippets Groups Projects
To learn more about this project, read the wiki.
README.md 6.69 KiB

Presentation

This component is the CAS server.

Start

mvn clean package
java -Dspring.config.location=src/main/config/cas-server-application-dev.yml -jar target/cas-server.jar

SAML metadata generation

  1. Retrieval of the IdP metadata, IdP metadata are ignored, so test metdata can be used instead
  2. Creation of a keystore for the IdP: keytool -genkeypair -alias idp-test -keypass password -keystore idp-test-keystore.jks -storepass password -keyalg RSA -keysize 2048 -validity 3650
  3. Generation of the SP metadata using the GenerateSpMetadata class (in api-iam-server) and saving into a file

Security

Generate the certificate:

keytool -genkeypair -alias cas-client-keystore -keyalg RSA -validity 1825 -keystore cas-client-keystore.jks -storetype JKS -keypass keyspwd -storepass keyspwd keytool -genkeypair -alias cas-server-keystore -keyalg RSA -validity 1825 -keystore cas-server-keystore.jks -storetype JKS -keypass keyspwd -storepass keyspwd

Extract the public key: