acme.sh The domain is not a cert name解决方法
使用acme.sh安装证书到指定路径时出现了下面的错误
acme.sh安装证书到指定路径命令如下
acme.sh --installcert -d www.domain.com -d domain.com --key-file /etc/ssl/domain.key --fullchain-file /etc/ssl/domain.key .pem
错误信息如下
[Wed Jul 29 11:06:29 UTC 2020] The domain 'www.domain.com' is not a cert name. You must use the cert name to specify the cert to install.
[Wed Jul 29 11:06:29 UTC 2020] Can not find path:'/var/.acme.sh/www.domain.com'
摸索发现原来时命令出现了错误,正确使用acme.sh安装证书到指定路径应该是如下代码
acme.sh --installcert -d domain.com -d www.domain.com --key-file /etc/ssl/domain.key --fullchain-file /etc//ssl/domain.pem
////成功会显示如下信息
[Wed Jul 29 11:08:22 UTC 2020] Installing key to:/etc/ssl/domain.key
[Wed Jul 29 11:08:22 UTC 2020] Installing full chain to:/etc/ssl/domain.pem