具體安裝和使用過程github上有中文文檔,地址:https://github.com/acmesh-official/acme.sh/wiki/%E8%AF%B4%E6%98%8E
這里記錄幾個(gè)坑:
1,對于網(wǎng)內(nèi)的服務(wù)器因?yàn)槿f能的墻的原因,請使用git clone方式安裝:
git clone https://github.com/Neilpang/acme.sh.git
cd acme.sh
./acme.sh --install
另外三種安裝方法見官方文檔:https://github.com/acmesh-official/acme.sh/wiki/How-to-install
2,生成證書文件,驗(yàn)證如果選擇文件驗(yàn)證,如果域名解析沒問題,還是失敗,請檢查該域名的nginx配置文件,是否有類似以下配置:
location ~* /\.
{
deny all;
}
如有 請暫時(shí)注釋掉,并重載或者重啟nginx.