SSL signed by and for localhost

I have a problem with getting a ssl certificate. If I try to get one everything looks normal in NCP but accessing the website doesnt work because the ssl certificate is signed by localhost for localhost.
NCP Report

NextCloudPi version v1.46.7
NextCloudPi image NextCloudPi_11-27-20
OS Armbian 21.02.0-trunk Buster \l . 4.4.213-rockchip64 (aarch64)
automount yes
USB devices sda
datadir /media/myCloudDrive/ncdata
data in SD no
data filesystem btrfs
data disk usage 1.3T/3.7T
rootfs usage 4.7G/29G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 22.2.2.0
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service down
Postfix service up
internet check ok
port check 80 open
port check 443 open
IP 192.168.178.31
gateway 192.168.178.1
interface eth0
certificates mydomain-0005
NAT loopback no
uptime 2days