Avoid generating a certificate when we don't need one