fix loading of the cert