I have a Spring Boot application that will only serve HTTPS. For local development I have generated a self-signed certificate with this command:
keytool -genkeypa