My domain is: brasens.com
I ran this command: sudo certbot --nginx
It produced this output:
No names were found in your configuration files. Please enter in your domain
name(s) (comma and/or space separated) (Enter 'c' to cancel): www.brasens.com.br brasens.com.br
Requesting a certificate for www.brasens.com.br and brasens.com.br
Performing the following challenges:
http-01 challenge for brasens.com.br
http-01 challenge for www.brasens.com.br
Waiting for verification...
Challenge failed for domain brasens.com.br
Challenge failed for domain www.brasens.com.br
http-01 challenge for brasens.com.br
http-01 challenge for www.brasens.com.br
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: brasens.com.br
Type: dns
Detail: no valid A records found for brasens.com.br; no valid AAAA
records found for brasens.com.br
Domain: www.brasens.com.br
Type: dns
Detail: DNS problem: NXDOMAIN looking up A for www.brasens.com.br -
check that a DNS record exists for this domain; DNS problem:
NXDOMAIN looking up AAAA for www.brasens.com.br - check that a DNS
record exists for this domain
The operating system my web server runs on is (include version): Amazon Linux 2
My hosting provider, if applicable, is: https://www.hostinger.com.br/
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.11.0
I think I need to explain my situation as a whole.
It's my first time setting up HTTPs on a server, so I'm having some difficulties.
Basically I'm creating a WEB application, which is hosted on the domain (www.brasens.com), this application will work in conjunction with a server made in Spring and hosted on AWS EC2, this server that will use the SSL certificate so that I can use HTTPs instead of HTTP in communication with it.
But I have several doubts about how to do this.
For example, I'm using the application's domain when creating the certificate, is that right? Should I use another domain?
This same domain is registered by Hostinger, which has already provided me with an SSL certificate, but has not provided me with its information, so can I generate another one on this same domain to use on the server?
Basically, I'm quite lost so I'd really appreciate it if you could enlighten me.