CN of Letsencrypt cert is always nextcloud40gb

Hi guys

I setup a nextcloud instance on an Ubuntu VM, which is working so far. But yesterday I wanted to create a ssl cert with letsencrypt and although I’m type in my desired server name, the CN of the cert it always “nextcloud40gb” and I not able to find out why this happens.

Last week I setup a nextcloud VM the first time for a test and I was able to create a cert without a problem, I changed nothing and it worked right away. But I had to re-install the VM and starting from scratch, as I wanted to use a NFS share for the user data.

So I changed the hostname to my desired servername, I changed the URL in the config.php but I dont know where this CN is coming from.

It’s the original hostname.