This HOW-TO has been succesfully tested on Ubuntu 19.10 LTS with nginx v. 1.16.1 so let's assume you have a similar setup. Using certificates from real certificate authorities (CAs) for development ...
As I understand it, the standard way to setup Lets Encrypt SSL certificates involves the remote Let's Encrypt server validating your ownership by finding a file that is accessible on your server.