Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acme.sh 自动配置SSL #6

Open
liwan11123123 opened this issue Jun 18, 2019 · 0 comments
Open

acme.sh 自动配置SSL #6

liwan11123123 opened this issue Jun 18, 2019 · 0 comments

Comments

@liwan11123123
Copy link
Owner

liwan11123123 commented Jun 18, 2019

1. 安装 acme.sh
curl  https://get.acme.sh | sh

2. 进入acme 目录
`cd ~/.acme.sh/`

3. 验证域名 通过nginx方式  key生成在 acme.sh 目录下的 linair.xyz下
 ./acme.sh --issue -d linair.xyz -d www.linair.xyz --nginx

4. 创建 ssl 目录
mkdir /etc/nginx/ssl/linair.xyz

5. 将证书安装到 /etc/nginx/ssl 目录下
./acme.sh  --installcert  -d  linair.xyz   \
        --key-file   /etc/nginx/ssl/linair.xyz/linair.key \
        --fullchain-file /etc/nginx/ssl/linair.xyz/fullchain.cer \
        --reloadcmd  "service nginx force-reload"

6.修改配置文件

详见 #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant