MCVE for https://stackoverflow.com/questions/59441042/secure-spring-boot-application-with-public-key-only
- Create keystore file using this command:
keytool -genkeypair -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass password -validity 360 -keysize 2048
-
Update files in
resources
-
Run
DemoApplication