I ran this command: ./certbot-auto --renew-by-default --email mail@example.com --text --agree-tos -d example.com -d www.example.com
to create my new certificate, but the output is
Domain: www.example.com
Type: unauthorized
Detail: Incorrect validation certificate for TLS-SNI-01 challenge.
Requested
I’m using a virtual machinte CentOS 7 to create the certificate that i will upload to a shared hosting plan
You can only obtain certificates for domains that Let’s Encrypt can verify ( so it needs to be publicly accessible ) .
You may be able to use the DNS-01 challenge (which requires you to place a token in the DNS records, rather than proof by accessing your domain website )