root@fer-VirtualBox:/var# certbot certonly -n --agree-tos --email correodel@who.is --webroot -w /var/www/ -d ferniproyect.es
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for ferniproyect.es
Using the webroot path /var/www for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. ferniproyect.es (http-01): urn:ietf:params:acme:error:dns :: No valid IP addresses found for ferniproyect.es
IMPORTANT NOTES:
The following errors were reported by the server:
Domain: ferniproyect.es
Type: None
Detail: No valid IP addresses found for ferniproyect.es
root@fer-VirtualBox:/var#
ferniproyect.es
192.168.100.237
Warning: Private ip address found. No connection possible. There are two types of ip addresses: Worldwide unique, global addresses and private addresses. If you want that other users connect your domain, your domain must have minimal one A- (ipv4) or AAAA- (ipv6) entry with a global ip address. Check Private network - Wikipedia to understand the details: 192.168.0.0 to 192.168.255.255: Class C - 256 private net, every with 256 addresses
Thanks for the answer, but when I associate my public IP I also get an error ...
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for ferniproyect.es
Using the webroot path /var/www for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. ferniproyect.es (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://ferniproyect.es/.well-known/acme-challenge/vW3SLr4iKbnqPpWSIRmJN5582iTQW7rWHSTY6bDTrDI [90.175.189.184]: "\n\n404 Not Found\n\n
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
root@fer-VirtualBox:/var#
If you use webroot and if that doesn't work, you use the wrong webroot.
Find your correct webroot. Create there the two subdirectories /.well-known/acme-challenge, there a file (file name 1234), then you must be able to load that file with your browser