NC losing SSL certificate at reboot

I’m hosting the VM on esxi 6.7 update 3, used the script to setup the ssl certificate through let’s encrypt script ( on my third level domain (, everything ok, except that when I reboot the VM, if I connect through the browser, I find non valid certificate but another certificate (released to nextcloud instead of my domain). tryed it generating another cert using, same problem, works until reboot.
Any ideas?

anyone can help?