Skip to content

Spring 启用 https 的配置

🏷️ Spring

application.properties 文件中添加配置即可.

JKS 格式秘钥文件

properties
server.port:8443
server.ssl.key-store: classpath:miyaowenjian.jks
server.ssl.key-store-password: cfca1234
server.ssl.keyStoreType: JKS

p12 格式文件

properties
server.port:8443
server.ssl.key-store: classpath:dlt.p12
server.ssl.key-store-password: 123456
server.ssl.keyStoreType: PKCS12
server.ssl.keyAlias: p12client