Here is the procedure that I've used to create a letsencrypt certificate in manual mode using a DNS record for registration.
sudo letsencrypt certonly -d example.com -d www.example.com --manual --preferred-challenges dns
The procedure will guide to the creation of a DNS TXT record used to