本站用的typecho 和阿里云,这个帖子主要记录怎么搭建ssl环境
1.申请ssl证书https://common-buy.aliyun.com/?spm=5176.7968328.1266638..7b811232vsUK6S&commodityCode=cas#/buy

2.使用的是lnmp ---- https://lnmp.org/faq/letsencrypt-wildcard-ssl.html
3.设置你的阿里云密钥,查看地址:https://usercenter.console.aliyun.com/#/manage/ak
export Ali_Key="123456"
export Ali_Secret="abcdef"
4.运行lnmp dns ali,按步骤填写即可
5.typecho配置,Typecho后台 -> 设置 -> 基本设置 -> 站点地址改成https的域名是必须的
6.编辑config.inc.php
define('__TYPECHO_SECURE__',true);
7.nginx 配置重定向,注意在vhost文件夹下
server {
listen 80;
server_name greenhtml.com;
return 301 https://www.greenhtml.com$request_uri;
}
8./etc/init.d/nginx restart
、