HTTPS certificate not valid

I don’t understand why it generates an invalid certificate because it messes up the Common Name (CN): ZimaOS Local instead of Common Name (CN) ZimaOS.local or zimaos.local or better zimaos.fritz.box