nginx配置
server_name domain.dooqu.com;
ssl on;
ssl_certificate /etc/nginx/cert/domain.dooqu.com.pem;
ssl_certificate_key /etc/nginx/cert/domain.dooqu.com.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
spring boot 配置
#https默认端口:443,http默认端口:80 根据需要配置
#server.port=443
#server.http-port=80
#开启https
server.ssl.enabled=true
#指定证书
server.ssl.key-store=classpath:domain.dooqu.com.jks
server.ssl.key-store-type=JKS
#别名 根据需要配置
#server.ssl.key-alias=tomcat_https
#密码
server.ssl.key-password=123456
server.ssl.key-store-password=123456