If the mariadb client can verify the server cert without having the CA file then DBD::MariaDB should be able to do so as well.