Configure the CoRIM verifier#

Note: The CoRIM verifier is experimental. It is the direction for NVIDIA’s attestation-verification workflow, but its behavior, interfaces, supported evidence, and EAR output may change.

This page describes the Rust bindings for the CoRIM verifier. The Configuration Guide configures the legacy attestation context and its claims-based workflow.

HTTP and TLS#

CorimStore::new and AiaOptions accept an optional HttpOptions reference. Use HttpOptions::builder() to configure retry behavior, backoff, connection and request timeouts, and custom TLS CA locations. Pass the same options to components that should use the same network settings.

use nv_attestation_sdk::HttpOptions;

let http = HttpOptions::builder()
    .max_retry_count(3)
    .connection_timeout_ms(5_000)
    .request_timeout_ms(30_000)
    .tls_ca_cert("/etc/ssl/certs/verifier-ca.pem")
    .build()?;

CoRIM sources and cache#

A new CorimStore includes the NVIDIA RIM allowlist prefix. Use add_allowed_url_prefix to permit another HTTPS prefix. The original rim-locator URL is checked before any rewrite.

Use add_url_rewrite to redirect an allowed prefix to a mirror. Rewrites are evaluated in insertion order and the first match wins. Configure the store before passing it to LocalCorimVerifier::new, which consumes the store.

For repeated appraisals, call enable_in_memory_cache. Choose the capacity and lifetime to match the deployment’s reference-manifest update and availability requirements.

Negative caching is disabled by default. Enable it to avoid repeating HTTP requests for missing CoRIMs:

store.enable_in_memory_cache(64 * 1024 * 1024, 12 * 60 * 60)?;
store.enable_negative_cache(1024 * 1024, 600)?;

Both caches follow the behavior described under CoRIM sources in the C guide, including cache keys, capacity, expiry, and disabling negative caching.

Trust roots#

LocalCorimVerifier::new includes the built-in NVIDIA production device and CoRIM signing roots. The host can read additional root CA certificates as PEM text and add them to either store:

verifier.add_device_identity_trust_root_pem(&device_root_pem)?;
verifier.add_rim_signing_trust_root_pem(&rim_root_pem)?;

The device store anchors device identity and attestation-key chains. The RIM store anchors CoRIM and fetched CoEV signing chains. Each call adds one root without removing the built-in root. Invalid PEM, non-CA certificates, and PEM containing more than one certificate are rejected. HttpOptions::tls_ca_cert controls HTTPS server trust and does not change either certificate store.

OCSP and verification controls#

Create the OCSP client with OcspClient::create_aia(AiaOptions { ... }). This uses each certificate’s Authority Information Access responder URL; pass AiaOptions::default() for the SDK defaults. Passing None to LocalCorimVerifier::new disables revocation checking.

CoRIM signature verification and revocation checking are enabled by default. set_verify_rim_signature(false) accepts unsigned CoRIMs, and set_verify_revocation(false) skips revocation checks. These switches are for controlled development fixtures only and should remain enabled in production.

Fallbacks and input digests#

add_backup_rim_locator supplies a locator only when evidence has none. set_backup_spdm_coev supplies ConciseEvidence only when SPDM evidence has no ECTs. Neither setting replaces valid data carried by the evidence.

set_default_hash_algorithms selects the default algorithms for ear_nvidia_inputs.digests. SHA-256 is the default. An empty slice disables digest output, while an algorithm request in the input overrides this default.

For the complete local workflow, see the CoRIM verifier guide.