Make sure that cert is never NULL