繁体   English   中英

在域名到期后续订 SSL 证书,可通过 pf VPN 访问

[英]renew SSL certificate after expiration on domain, which is accessible with the help pf VPN

我是项目中的新 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

`

尝试更新但不起作用。

连接超时(可能是防火墙问题)

如果您想在 LetsEncrypt 中使用 HTTP 质询来续订证书,则服务器需要可从互联网访问,并且还需要能够从服务器连接到互联网。 这似乎不是这里的情况。

如果您至少可以控制域的公共 DNS,那么您可以使用 DNS 质询 - 请参阅如何为非面向公众的服务器获取 Let's Encrypt 证书? .

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM