SpringBoot中https的配置
# 配置
# https://help.aliyun.com/document_detail/365559.html
# HTTPS协议默认端口号为443,需要使用其他端口时,您可以在此处自定义。
server.port=8002
# https://docs.oracle.com/en/java/javase/11/docs/specs/security/standard-names.html#keystore-types
# 您需要使用实际的证书名称替换domain_name.pfx。
server.ssl.key-store=classpath:v4.pfx
# 填写pfx-password.txt文件内的密码。
server.ssl.key-store-password=${SSL_KEY_PASSWORD}
server.ssl.keyStoreType=PKCS12
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# 参考
https://help.aliyun.com/document_detail/365559.html (opens new window)
编辑 (opens new window)
上次更新: 2023/09/19, 13:33:19