I don’t use duckdns, i use my own domain on ha.
when I started I did have a small challenge generating my certificate which I solved it by running a daily check with certbot and copy it to ha using samba when a new certificate was generated 
You might want to check my earlier posts regarding this topic… i already tried to explain many times