我有兩臺服務器。一個用作 Web 服務器,另一個用作 Radius 服務器。為了設定半徑,我必須通過發出來驗證域名的所有權
certbot certonly --standalone -d my.comain.com
不幸的是,它回傳
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Requesting a certificate for my.domain.com
Performing the following challenges:
http-01 challenge for my.domain.com
Waiting for verification...
Challenge failed for domain my.domain.com
http-01 challenge for my.domain.com
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: my.domain.com
Type: unauthorized
Detail: Invalid response from
http://my.domain.com/.well-known/acme-challenge/lZJhjHOvCGs0DKmrdJbi31iGW_RpNL58ua2CPzwmKA4
[1XX.1XX.1XX.1XX]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML
2.0//EN\">\n<html><head>\n<title>404 Not
Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"
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.
供您參考,此命令是從 radius 服務器運行的,并且域位于 Web 服務器上。該域可通過瀏覽器訪問。即使我為 http 檔案夾設定了 777 權限,錯誤仍然存??在。
它必須在同一臺服務器上嗎?
uj5u.com熱心網友回復:
從 Certbot 的檔案中:
此插件需要系結到埠 80 才能執行域驗證,因此您可能需要停止現有的網路服務器。
certbot充當 Web 服務器以驗證域。Let's Encrypt 嘗試連接到certbot's-d選項(my.domain.com在您的情況下)指向的域上的此 Web 服務器。因此,您將需要一些臨時網路技巧(埠轉發、DNS 更改等),以便在您請求此證書時,來自 Let's Encrypt 的流量到達 RADIUS 服務器,而不是 Web 服務器。您還需要每三個月重復一次以進行續訂。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/415086.html
標籤:
