Fixed leak. Returns false when there's no certificate.