#648 also generate the certificate when we set the external grade