The director of a company that signed off thousands of medical certificates for HGV drivers has been found guilty of fraud.