sudo certbot certonly --cert-name example.com
1.Problem binding to port 80: Could not bind to IPv4 or IPv6.
停止nginx等服务, Refer to Letencrypt renewal fails: Could not bind to IPv4 or IPv6… Skipping
2.Failed authorization procedure. kibana.haoqi100.com (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://example.com/.well-known/acme-challenge/bfe5vRl7mJJvZSGqs0hTPVDATtfzr0ztl2LhiBkVKVU [xx.xx.xx.xx]: "\n\n<html xmlns=“http://www.w3.or”
…
To fix these errors, please make sure that your domain name was entered correctly and the DNS A/AAAA record(s) for that domain contain(s) the right IP address.
通过修改host不起作用,需要到DNS服务商,绑定域名。