Navigate to your project (in the src/main/resources folder). Create a folder named saml and open the Command Prompt in that location. Execute the following command:
keytool -genkey -v -keystore keystore.jks -alias spring -keyalg RSA -keysize 2048 -validity 10000
When prompted, give the required details and create the keystore.jks file within the src/main/resources/saml folder.