You need two certificates: the certificate chain to the Root CA and the certificate for gitea.
I’m running an own root CA in my LAN (mostly for fun and educational purpose) and issued a cert for gitea.
Self-signed certificates can also be generated with .