Command:

/root/.acme.sh/acme.sh --cron --home "/root/.acme.sh"

前提是,acme.sh已经配置并在Proxmox host上面安装好了。

证书安装: proxmox-acme-ssl-https-certificate-install

因为用了 acme.sh,但是我的port forwarding 并没有给到 Proxmox Host, 所以自动刷新会出问题。

会有如下的email notification

Cron <root@pve> "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
Inbox

Cron Daemon <noticentr@gmail.com>
12:56 AM (16 hours ago)
to root

[Sun 23 Jan 2022 12:56:06 AM EST] pve.<example>.dev:Verify error:no valid A records found for pve.<example>.dev; no valid AAAA records found for pve.<example>.dev
[Sun 23 Jan 2022 12:56:06 AM EST] Please add '--debug' or '--log' to check more details.
[Sun 23 Jan 2022 12:56:06 AM EST] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
[Sun 23 Jan 2022 12:56:06 AM EST] Error renew pve.<example>.dev.