Spring boot after https: The Tomcat connector configured to listen on port 8444 failed to start.

前端 未结 6 886
逝去的感伤
逝去的感伤 2021-02-13 20:24

I followed a guide to enable https in Spring Boot. The application was beforehand working on https://localhost:8080

I\'ve created a keystore.jks which is in

6条回答
  •  没有蜡笔的小新
    2021-02-13 20:53

    From Spring Boot 2.0 and higher, you can ignore this property.

    security.require-ssl=true
    

    To enable SSL, use the below configuration in your application.properties

    The format used for the keystore

    server.ssl.key-store-type=JKS

    The path to the keystore containing the certificate

    server.ssl.key-store=classpath:somecert.jks

    The password used to generate the certificate

    server.ssl.key-store-password=password

    The alias mapped to the certificate

    server.ssl.key-alias=alias_name

    Note : server.ssl.key-store refers to the keystore location. Use classpath prefix, if it is present in src/main/resources. Otherwise use, file:/some/location.

提交回复
热议问题