I have a spring boot application, which is an SSL enabled one, I can access it through localhost. "https://localhost:8443/showPage" like this. For localhost I created SSL certificate and gave the details in application.properties like below
server.port: 8443
server.ssl.key-store: classpath:keystore.p12
server.ssl.key-store-password: 123456
server.ssl.keyStoreType: PKCS12
server.ssl.keyAlias: tomcat
This works perfectly for localhost. I want to deploy the war to a tomcat server, which is already SSL enabled. For that I changed the properties like below
server.port: 8443
server.ssl.key-store: /opt/tomcat/keystore/keystorefile.jks
server.ssl.key-store-password: Rv$@1234
server.ssl.keyStoreType: JKS
server.ssl.keyAlias: tomcat
But I am getting the below image while accessing any request. I called the request properly. Not as shown in the picture. Like this: "https://ipaddress:8443/war_name/showPage"

And my controller accepts request for @RequestMapping("showPage")
server.*properties are useless when deploying to a container. Those are only useful when running the jar/war and to configure the embedded container. - M. Deinum