Fork me on GitHub
瞬间的惊奇真是种确幸,每种确幸都是支玄妙的俳句。吊桥抬起,退回到内心幽静的花园,邂逅的还是那种熟悉的冷冷清清又轰轰烈烈的美妙质感。这真令人欢喜。

https搭建实例

:(用的)
https://www.coderecord.cn/lets-encrypt-wildcard-certificates.html :acme.sh
vim .acme.sh/account.conf


SAVED_GD_Key='************************************'
SAVED_GD_Secret='***********************************'

根据个人情况设定域名商


./.acme.sh/acme.sh --issue -d sensen.com -d *.sensen.com --dns dns_gd

acme.sh --installcert -d sensen.com -d *.sensen.com --keypath /etc/nginx/ssl/jwsmed.com.key --fullchainpat /etc/nginx/ssl/fullchain.cer --reloadcmd "systemctl restart nginx"

原理:前端为SLB 后端devs.sensen.com 配置nginx做分发; 监听443和80端口,用nginx代理其它需要证书服务器
nginx配置
ssl.conf (通配)

ssl_certificate /etc/nginx/ssl/fullchain.cer;
ssl_certificate_key /etc/nginx/ssl/sensen.com.key;

 

 

https.conf

ssl_certificate /etc/nginx/ssl/fullchain.cer;
ssl_certificate_key /etc/nginx/ssl/luoluo.com.key;

server {
listen 80;
server_name *.luoluo.com luoluo.com;
rewrite ^ https://$http_host$request_uri? permanent;
}

 

posted @ 2018-10-01 10:00  干嘛那么贪睡  阅读(308)  评论(0编辑  收藏  举报