Spring Boot - enable and configure SSL certificate

后端 未结 4 507
Happy的楠姐
Happy的楠姐 2021-01-11 15:25

I have this certificates / files in order to enable SSL for my application:

I found out that this properties are needed for Spring Boot to enable HTTPS:

4条回答
  •  太阳男子
    2021-01-11 15:46

    server.port=8089
    server.ssl.enabled=true
    server.ssl.key-store=src/main/resources/keystore.p12
    server.ssl.key-store-password=****
    server.ssl.keyStoreType=PKCS12
    server.ssl.keyAlias=tomcat << This should be the alias of yourfile.12 if you have forgotten just create a new one and replace it>>
    

    And dnt forget to add

    security.require-ssl=true <>
    

提交回复
热议问题