【发布时间】:2016-12-04 07:30:48
【问题描述】:
我正在尝试根据我的 mac 上的 https://github.com/Neilpang/acme.sh 上的信息在我的 godaddy 共享主机(启用其 cPanel)上设置一个免费的 HTTPS。
但是我被卡住了......
到目前为止我做了什么:
- 已建立到服务器的 SSH 连接
- 按照文档安装了 acme:
git clone https://github.com/Neilpang/acme.sh.git cd ./acme.sh ./acme.sh --install
3.关闭连接并重新建立(如指示正确路径或其他内容所必需的)
4.颁发证书:
acme.sh --issue -d mydomain.com -w www --debug
我发现 www 是我的网站所在的目录... 大约 10 秒后,命令显示“证书成功”
- 然后我迷路了…… acme 网站说“3. 将颁发的证书安装到 Apache/Nginx 等。” 使用如下命令:
--apache-- acme.sh --installcert -d example.com \ --certpath /path/to/certfile/in/apache/cert.pem \ --keypath /path/to/keyfile/in/apache/key.pem \ --fullchainpath /path/to/fullchain/certfile/apache/fullchain.pem \ --reloadcmd "service apache2 restart"
or
-nginx- acme.sh --installcert -d example.com \ --keypath /path/to/keyfile/in/nginx/key.pem \ --fullchainpath /path/to/fullchain/nginx/cert.pem \ --reloadcmd "service nginx restart"
我猜 Godaddy 正在使用 apache? 这些 /path/to/certfile/in/ 目录是什么?它们对我的 Godaddy 安装有什么用?
【问题讨论】:
标签: apache ssl shared-hosting