:computer: :whale: :elephant: :dolphin: :penguin: :rocket: Start Docker LNMP(LEMP) In less than 2 minutes Powered by Docker Compose. 让 PHP 开发者快速(一键)搭建基于容器技术(Docker、Kubernetes)的开发、测试、生产(CI/CD by Drone)环境.
INFO Use LNMP CLI in LNMP Root /home/levi/lnmp
INFO Load env file [ .env ]
INFO Exec custom scripts
INFO .env file existing
INFO APP_ROOT is /home/levi/app/project/app
INFO Branch is 20.10
INFO ARCH is Linux x86_64
INFO Docker version 20.10.17, build 100c701
INFO Docker Compose version v2.6.0
DNS_TYPE: dns_dp
https://github.com/acmesh-official/acme.sh
v3.0.2
ECC
正在申请证书 ...
[Mon Feb 26 18:12:55 UTC 2024] Selected server: https://acme-v02.api.letsencrypt.org/directory
[Mon Feb 26 18:12:55 UTC 2024] Lets find script dir.
[Mon Feb 26 18:12:55 UTC 2024] _SCRIPT_='/usr/local/bin/acme.sh'
[Mon Feb 26 18:12:55 UTC 2024] _script='/root/.acme.sh/acme.sh'
[Mon Feb 26 18:12:55 UTC 2024] _script_home='/root/.acme.sh'
[Mon Feb 26 18:12:55 UTC 2024] Using default home:/root/.acme.sh
[Mon Feb 26 18:12:55 UTC 2024] Using config home:/acme.sh
https://github.com/acmesh-official/acme.sh
v3.0.2
[Mon Feb 26 18:12:55 UTC 2024] Using server: letsencrypt
[Mon Feb 26 18:12:55 UTC 2024] Running cmd: setdefaultca
[Mon Feb 26 18:12:55 UTC 2024] Changed default CA to: https://acme-v02.api.letsencrypt.org/directory
开始转移证书到 /ssl ...
NGINX...
[Mon Feb 26 18:12:55 UTC 2024] Installing key to: /ssl/*.51baopen.cn.key
[Mon Feb 26 18:12:55 UTC 2024] Installing full chain to: /ssl/*.51baopen.cn.crt
cat: can't open '/acme.sh/*.51baopen.cn_ecc/fullchain.cer': No such file or directory
然后查看了下SSL目录,文件都存在,.key也有内容,但是.crt是空的
ls -al ./config/nginx/ssl
total 24
-rw-r--r-- 1 root root 0 Feb 27 02:01 '*.51baopen.cn.crt'
-rw------- 1 root root 227 Feb 27 02:01 '*.51baopen.cn.key'
drwxr-xr-x 2 root root 4096 Feb 27 02:01 .
drwxr-xr-x 7 levi levi 4096 Mar 28 2023 ..
运行命令如下:
之所以加上
--set-default-ca --server letsencrypt
,是因为收到错误提示,于是参考了这篇内容:https://www.cnblogs.com/imzhi/p/17974799执行结果申请成功了,但是最后提示目录不存在:
然后查看了下SSL目录,文件都存在,
.key
也有内容,但是.crt
是空的请问怎么解决?