Help with ssl certificate

Please I need help for this issue. Trying for 2 days but cant solve the issue.

My domain is: theshadowmedia.com

I ran this command: sudo certbot --apache

It produced this output: Saving debug log to /var/log/letsencrypt/letsencrypt.log

Which names would you like to activate HTTPS for?


1: theshadowmedia.com
2: www.theshadowmedia.com


Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel):
Requesting a certificate for theshadowmedia.com and www.theshadowmedia.com

Certbot failed to authenticate some domains (authenticator: apache). The Certificate Authority reported these problems:
Domain: www.theshadowmedia.com
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for www.theshadowmedia.com - check that a DNS record exists for this domain; DNS problem: NXDOMAIN looking up AAAA for www.theshadowmedia.com - check that a DNS record exists for this domain

Hint: The Certificate Authority failed to verify the temporary Apache configuration changes made by Certbot. Ensure that the listed domains point to this Apache server and that it is accessible from the internet.

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is: digitalocean

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):

www.theshadowmedia.com and theshadowmedia.com are two different domains as far as the DNS is concerned.

You should add an A and/or AAAA record on your www subdomain.

4 Likes

Thank you, saved my life here

2 Likes