That’s how mine is on Debian 11 with /etc/dkim-domains.tx listing ALL domains to sign for. Did you check the /etc/dkim-domains.txt to see if mydomain.com was listed there?
It’s the same on EL distros (which CentOS no longer is, and you’re right it’s not supported, but in this case it should work the same as everywhere else).