Don't add the certificate resource if not necessary