2017-06-12 88 views
2

我有一個AWS實例,其中letsenrypt證書將在下週過期。我爲SSL使用Certbot。 要續訂我跑證書:Certbot更新錯誤 - AWS EC2

./certbot-auto --force-renewal 

然後我得到了以下錯誤

 - The following errors were reported by the server: 

    Domain: mydomain.com 
    Type: unauthorized 
    Detail: Incorrect validation certificate for tls-sni-01 challenge. 
    Requested 
    e1ffb2998151164f701ff76417586854.6bdc1fb9cc4424a3ecd85558d178f6e9.acme.invalid 
    from IP.00.00.00. Received 3 certificate(s), first 
    certificate had names "mydomain.com" 

    To fix these errors, please make sure that your domain name was 
    entered correctly and the DNS A record(s) for that domain 
    contain(s) the right IP address. 

我的域名輸入正確,和我的DNS A記錄(S)包含正確的IP。 (我使用3爲1像ip:mydomain.com,www.mydomain.com,myOLDdomain.com)。

有人可以幫我更新它

回答

1

好吧,我設法更新我的證書。我的網頁目錄有問題。

sudo ./certbot-auto certonly --expand --webroot --webroot-path /path/to/web/folder -d mydomain.com