Hello, first of all, apoloogies for being a noob on the subject, but im stuck and need some help
I have an EC2 instance, behind Elastic Beanstalk, and I found a script online, that is a NGIX extension, to be able to generate the certificates for the domain in question…
First of all, I went to Route 53, and added the information of my domain (sdk.bigfootgaming.net), and also in GoDaddy, added an A dns rule to forward sdk.bigfootgaming.net to my EC2 instance’s IP. That is working.
Now, in my NGIX script, Im running the following
command: “mkdir /opt/certbot || true”
command: “wget https://dl.eff.org/certbot-auto -O /opt/certbot/certbot-auto”
command: “chmod a+x /opt/certbot/certbot-auto”
command: “sudo /opt/certbot/certbot-auto certonly --debug --non-interactive --email email@example.com --agree-tos --standalone --domains sdk.bigfootgaming.net --keep-until-expiring”
command: “ln -sf /etc/letsencrypt/live/sdk.bigfootgaming.net /etc/letsencrypt/live/ebcert”
command: “mv /etc/nginx/conf.d/https_custom.pre /etc/nginx/conf.d/https_custom.conf”
command: “cat .ebextensions/certificate_renew.txt > /etc/cron.d/certificate_renew && chmod 644 /etc/cron.d/certificate_renew”
The GetCert part of this is failing, with the following message:
The following errors were reported by the server:
Domain: sdk.bigfootgaming.net Type: unauthorized Detail: Invalid response from http://sdk.bigfootgaming.net/.well-known/acme-challenge/LzhUFJG8JtK0ncGzrwljmKCF-fs1DJFetiztRuiInwI [126.96.36.199]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>500 Internal Server Error</title>\n</head><body>\n<h1>Inter"
Im not sure here what its doing. I know it cant seem to access the files, and if I FTP into the site, I dont see them created there.
Any help with this is greatly appreciated