I have multiple servers that share files via webDAV. The connections are secured with TLS and the same wild card certificate on all servers. I have different subdomains pointing to the respective servers. However I can't get davfs2 to accept my wild card certificates, it keeps complaining: /sbin/mount.davfs: the server certificate does not match the server name
So for example I have:
ServerA.mydomain.com ServerB.mydomain.com
all have certificate that covers *.mydomain.com and a SAN for mydomain.com
Everything works fine of course if I use mydomain.com for webDAV because that one is explicitly covered in the certificate.
I could add all my subdomains as SAN's to the certificate, but I can't keep reissuing certificates each time I put a machine up (or take one down).
So is there anyway to make davfs2 accept wildcard certificates?