def X509ConfigFlagsAreSpecified(args):
  """Returns true if any x509 config flags are specified."""
  return any([
      flag in vars(args) and args.IsSpecified(flag) for flag in [
          'use_preset_profile', 'key_usages', 'extended_key_usages',
          'max_chain_length', 'is_ca_cert'
      ]
  ])