我是项目中的新DevOps工程师,SSL证书已过期。我们通过vpn访问此域test.[smth].[smth]. com,无法公开访问。当我续订证书时,我出现错误。这应该是由上述事实导致的。
Found the following certs:
Certificate Name: test.[smth].[smth].com
Serial Number: 3ce2da614202d3d4684ca587945c4dc7bfa
Key Type: RSA
Domains: test.[smth].[smth].com
Expiry Date: 2022-12-18 06:28:25+00:00 (INVALID: EXPIRED)
Certificate Path: /etc/letsencrypt/live/[smth].[smth].com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/[smth].[smth].com/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ ssh centos@${!BITBUCKET_BRANCH} "sudo certbot renew"
bash: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)
sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)
sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)
sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/test.[smth].[smth].com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cert is due for renewal, auto-renewing...
Non-interactive renewal: random delay of 471.892279475 seconds
Plugins selected: Authenticator nginx, Installer nginx
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Renewing an existing certificate for test.[smth].[smth].com
Performing the following challenges:
http-01 challenge for test.examo.quantori.com
Waiting for verification...
Challenge failed for domain test.examo.quantori.com
http-01 challenge for test.examo.quantori.com
Cleaning up challenges
Failed to renew certificate test.examo.quantori.com with error: Some challenges have failed.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All renewals failed. The following certificates could not be renewed:
/etc/letsencrypt/live/test.examo.quantori.com/fullchain.pem (failure)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1 renew failure(s), 0 parse failure(s)
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: test.[smth].[smth].com
Type: connection
Detail: 3.234.199.16: Fetching
http://test.examo.quantori.com/.well-known/acme-challenge/SCs6BzGPE4aD7aSFO7SN5dJtj1V3XL2lkPHo-dhKe1E:
Timeout during connect (likely firewall problem)
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. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you're using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.
Searching for test report files in directories named [test-results, failsafe-reports, test-reports, TestResults, surefire-reports] down to a depth of 4
尝试续订,但无效。
1条答案
按热度按时间dced5bon1#
连接期间超时(可能是防火墙问题)
如果你想通过在LetsEncrypt中使用HTTP挑战来更新证书,那么服务器需要能够从互联网访问,并且它还需要能够从服务器连接到互联网。
如果您至少可以控制域的公共DNS,则可以使用DNS质询-请参见How can I get a Let's Encrypt certificate for a non-public facing server?。