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

前端 未结 6 783
逝去的感伤
逝去的感伤 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:56

    I solved the same issue by using the following configuration

    # Define a custom port instead of the default 8080
    server.port=8443
    # Tell Spring Security (if used) to require requests over HTTPS
    security.require-ssl=true
    # The format used for the keystore 
    server.ssl.key-store-type=PKCS12
    # The path to the keystore containing the certificate
    server.ssl.key-store=src/main/resources/keystore.p12
    # The password used to generate the certificate
    server.ssl.key-store-password=root0
    

    I removed alias name and it worked perfectly. "You probably won't need a key alias, since there will only be one key entry" referred from TOMCAT SSL Error: Alias name does not identify a key entry

提交回复
热议问题