Fix AbstractCertificateGenerator class for precommit task