The key can be created using the following command:
$JAVA_HOME/bin/keytool -genkeypair -alias saml-key -keypass <pw1> \ -keystore /path/to/saml-key.jks -storepass <pw2> \ -keyalg RSA -keysize 2048 -validity 3650where pw1 and pw2 are the key and store passwords respectively. These passwords need to be entered in the corresponding fields below. The validity period given above is 10 years, feel free to choose whatever period suits you.