camc[.]sa
domain is originally from dnet and I transferred it to bluehost and connected a wordpress site to it. Now i created a subdomain and connected it to my new website hosted on aws. I created the sub domain vr.camc[.]sa
on bluehost as I cannot create subdomain on dnet. Then after verification dns status says pointed and is now pointing towards the website deployed on aws. But it is http and i tried to get ssl certificate from letsencrypt using commands in ec2 instance but got some errors which are attached below. Can you help me in this regard as camc[.]sa
has SSL certificate but its subdomain vr.camc[.]sa
does not.
My domain is: camc[.]sa
My sub-domain is: vr.camc[.]sa
I ran this command:
sudo apt-get update
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get install python3-certbot-nginx
sudo certbot --nginx -d vr.camc[.]sa -d www.vr.camc[.]sa
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for vr.camc[.]sa
and www.vr.camc[.]sa
Certbot failed to authenticate some domains (authenticator: nginx). The Certificate Authority reported these problems:
Domain: vr.camc[.]sa
Type: unauthorized
Detail: 50.87.184.136: Invalid response from http://vr.camc[.]sa/.well-known/acme-challenge/1bKwOEXrWi_pem1p6UV9ApFi32YJjuJPsQBqTugHIPg
: 404
Domain: www.vr.camc[.]sa
Type: unauthorized
Detail: 50.87.184.136: Invalid response from http://www.vr.camc[.]sa/.well-known/acme-challenge/Ot_oRDLRnVYn2IOPOk_pcaQo84PKHuq5vRZoBBrInec
: 404
Hint: The Certificate Authority failed to verify the temporary nginx configuration changes made by Certbot. Ensure the listed domains point to this nginx server and that it is accessible from the internet.
Some challenges have failed.
My web server is (include version):Nginx
The operating system my web server runs on is (include version): Ubuntu 22.04
My hosting provider, if applicable, is: dnet and bluehost
I can login to a root shell on my machine (yes or no, or I don't know): Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): No
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 1.21.0