【发布时间】:2020-09-15 20:50:43
【问题描述】:
问题
我有两个 EC2 实例正在运行。一个EC2 实例当前托管我的网站https://thechrisbolton.com,您可以看到它具有有效的letsencrypt 证书。我想在我的第二个 EC2 实例上创建一个证书,我将在其中部署我的应用程序。一旦我的应用程序部署在第二个 EC2 实例上,我将销毁第一个实例。但是,我无法获得在第二个 EC2 实例上创建的证书。
错误
- The following errors were reported by the server:
Domain: thechrisbolton.com
Type: unauthorized
Detail: Invalid response from
https://thechrisbolton.com/.well-known/acme-challenge/kITr3I__o6eb_WH2cguR200gWnt998DN1s8xamtPIbM
[3.234.11.212]: "<html>\r\n<head><title>404 Not
Found</title></head>\r\n<body>\r\n<center><h1>404 Not
Found</h1></center>\r\n<hr><center>nginx/1.18.0</ce"
Domain: www.thechrisbolton.com
Type: unauthorized
Detail: Invalid response from
https://www.thechrisbolton.com/.well-known/acme-challenge/DhzxfraTsUeN3a7bXQhfzS36CTHRzlBUWVAHceD
ETB8
[3.234.11.212]: "<html>\r\n<head><title>404 Not
Found</title></head>\r\n<body>\r\n<center><h1>404 Not
Found</h1></center>\r\n<hr><center>nginx/1.18.0</ce"
我的尝试
$ certbot certonly --standalone -d thechrisbolton.com -d www.thechrisbolton.
com
我已通读certbot documentation 以尝试找到一种方法来创建现有证书。唯一看起来可能有效的是--duplicate 标志。但那是Most users will not need to issue this command in normal circumstances.,所以如果我使用它,我觉得我做错了什么。
【问题讨论】:
标签: amazon-ec2 lets-encrypt certbot