How do I specify local file path to my ssl keystore file in spring application.properties?
Do not rely on absolute paths. Put the file into same directory as Spring Boot JAR and add this line into your application.properties:
server.ssl.key-store=file:keystore.jks
Second option is to pass system variable to -Dserver.ssl.key-store=file:keystore.jks
Below worked for me with Tomcat 8.5.2:
Windows:
server:
ssl:
key-store: file:C:\<complete file path with extension>
Linux:
server:
ssl:
key-store: file:/J2EE/<complete file path with extension>