阿里云服务器配置针对springboot项目配置ssl证书

发布时间 2023-09-12 13:55:35作者: 刘百会

免费证书:https://yundunnext.console.aliyun.com/?spm=a2c4g.11186623.0.0.133848f31GGGKi&p=cas#/certExtend/buy/cn-hangzhou

下载ssl证书到

 

 

 springboot配置文件修改

server:
  port: 8088
  ssl:
    key-store-password: k5cj681n    #填写jks-password.txt文件内的密码。
    key-store-type: JKS #JKS格式证书密钥库类型。PFX格式的证书密钥库类型为PKCS12。
    key-store: classpath:www.liubaihui.com.jks   #您需要使用实际的证书名称替换domain_name.jks。

 

官方文档:https://help.aliyun.com/zh/ssl-certificate/user-guide/enable-https-on-spring-boot?spm=a2c4g.11186623.0.0.538763dfNjtrSq