springboot配置https

SSL : secure socket layer 是一种加密协议,SSL主要用于保护数据在 客户端和服务器之间的传输,,防止未经授权的访问和窃取敏感信息

  1. 在腾讯云申请ssl证书
    在这里插入图片描述
    springboot配置https_第1张图片

申请了之后在我的域名中,,解析
springboot配置https_第2张图片
解析了之后,去下载证书:
springboot配置https_第3张图片
因为springboot是 Tomcat服务器,,下载 JKS格式

  1. 将下载的证书和 springboot项目整合到一起

springboot配置https_第4张图片
本地的https就搭建完成了


服务器nginx配置,,将443映射到8091端口,,

springboot配置https_第5张图片

你可能感兴趣的:(https,网络协议,http)