Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
1: www.78.24.219.199
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel): www.78.24.219.199.ru
** Error - Invalid selection **
Which names would you like to activate HTTPS for?
We recommend selecting either all domains, or all domains in a VirtualHost/server block.
1: www.78.24.219.199
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 www.78.24.219.199
An unexpected error occurred:
Error creating new order :: Cannot issue for "www.78.24.219.199": Domain name does not end with a valid public suffix (TLD)
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
You can only get Let's Encrypt certs for domain names that exist in the public DNS system. Once acquired they can be used on private servers. But, the control of the domain name occurs in the public internet.
I don't think removing and reinstalling certbot was ever part of the problem.
And you might have been able to reconfigure nginx to do what it is doing now.
But I am glad that you found a solution.