The Problem
I have two EC2
instances running. One EC2
instance is currently hosting my website https://thechrisbolton.com which you can see has a valid letsencrypt
certificate. I want to create a certificate on my second EC2
instance where I will deploy my application. Once my application is deployed on the second EC2 instance, I am going to destroy the first one. However, I cannot get a certificate created on the second EC2 instance.
The Error
- 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"
What I've tried
$ certbot certonly --standalone -d thechrisbolton.com -d www.thechrisbolton.
com
I have read through the certbot documentation to try and find a way to pull create an existing certificate. The only thing that looks like it might work is the --duplicate
flag. But that states, Most users will not need to issue this command in normal circumstances.
so I feel like I am doing something wrong if I use that.