Guides
7. CAWG Identity
Attach Creator Assertions Working Group (CAWG) identity assertions (cawg.identity) to C2PA manifests so validators can verify your brand or organization’s identity alongside creator metadata (cawg.metadata) and AI training preferences (cawg.training-mining).
This guide covers both Managed Signing (where Trufo manages your organization’s CAWG certificate, org_interim) and In-House Signers (where you enroll a cawg-interim certificate from Trufo Certificate Authority for a signer you operate yourself). Because CAWG’s trust model is still maturing, both currently use organization-scoped interim certificates issued under Trufo’s Interim CAWG Identity CA (temp-cawg-ca.crt). For end-user or creator identity programs, contact support@trufo.ai.
1. Choose a Route
| Managed Signing | In-House Signer | |
|---|---|---|
| Who signs the C2PA claim | Trufo (Cloud or Local mode) | Your signer (c2pa-rs, c2patool, etc.) |
| CAWG certificate management | Trufo provisions and holds the key (org_interim) |
You enroll a cawg-interim leaf certificate and hold the key in your KMS / HSM |
| Test option (no OV or plan) | cawg_identity_id="test" on test.api.trufo.ai |
Dummy cawg-interim-test certificate from https://ca.trufo.ai |
| Production usage | Pass ["cawg_identity", {"cawg_identity_id": "org_interim"}] |
Enroll with request_cawg_interim_cert() and wire into your signer |
| OCSP stapling | Handled by Trufo | Fetch from https://ocsp.trufo.ai/cawg (6. Timestamps and OCSP) |
Certificates you enroll yourself cannot be selected through cawg_identity_id in Managed Signing.
2. Complete the Prerequisites
- Test: no OV or plan is required. Managed Signing test calls need a
c2pa-sign-testkey (2. Trufo Account Setup); dummycawg-interim-testenrollment needs no account at all. - Production (both routes):
- Trufo account with MFA (2. Trufo Account Setup). For the in-house signer route, you also need an owner or admin role, a
trufo-apikey, andtrufo login. - Active Organization Validation (OV).
- Active CAWG Organization Certificate plan (
cawg_cert_organization). Managed Signing also requires a C2PA Signing plan (c2pa_signing_apiorc2pa_signing_api_branded).
- Trufo account with MFA (2. Trufo Account Setup). For the in-house signer route, you also need an owner or admin role, a
Missing prerequisites on enrollment return 403 NoEligiblePlan, 403 OVNotActive, or 403 OrgNotValidated (see POST /ra/cawg-interim/csr-jwt).
3. Managed Signing Route
In Managed Signing, cawg.identity cryptographically binds your organization’s verified identity to all gathered assertions in the manifest (including cawg_metadata and cawg_training).
Test
Use cawg_identity_id="test" on test.api.trufo.ai (production hosts reject "test" with 400 InvalidCawgIdentityId):
from pathlib import Path
from trufo import sign_c2pa_cloud_test
from trufo.util.credentials import TrufoAPIKey, load_api_key
api_key = load_api_key(TrufoAPIKey.C2PA_SIGN_TEST)
signed_bytes = sign_c2pa_cloud_test(
api_key,
Path("input.jpg").read_bytes(),
manifest_title="signed.jpg",
assertions=[
["cawg_metadata", {
"assertion": {
"@context": {"dc": "http://purl.org/dc/elements/1.1/"},
"dc:creator": ["Example Studio"],
"dc:rights": "© 2026 Example Corp. All rights reserved.",
},
}],
["cawg_training", {
"assertion": {
"entries": {
"cawg.ai_generative_training": {"use": "notAllowed"},
},
},
}],
["cawg_identity", {"cawg_identity_id": "test"}],
],
)
Path("signed.jpg").write_bytes(signed_bytes)
Checkpoint: inspect with c2patool signed.jpg — you should see cawg.identity, cawg.metadata, and cawg.training-mining assertions (add TCA Test Root CA as a CAWG trust anchor to validate test-host identity signatures in CI; see Section 5).
Move to production
Once OV and the cawg_cert_organization plan are active, switch to sign_c2pa_cloud() (or sign_c2pa_local()) with a c2pa-sign-prod key and cawg_identity_id="org_interim". Trufo provisions and manages the certificate automatically; there is nothing to enroll or rotate.
See CAWG Identity and Metadata and cawg_identity.py for cawg_metadata namespaces and cawg_training entries.
4. In-House Signer Route
cawg-interim is an organization-scoped leaf type (maximum validity 366 days, EC P-256 or P-384 keys) that chains through https://ca.trufo.ai/temp-cawg-ca.crt to https://ca.trufo.ai/root-ca.crt, with OCSP at https://ocsp.trufo.ai/cawg, and needs no Product Validation (PV) or instance. Your outer C2PA claim still needs a C2PA Claim Signing certificate from 5. C2PA Certificates or another C2PA CA; see Certificate Types and Accepted Keys.
Test with a dummy certificate
No account is required. Dummy certificates use cawg-interim-test, are enrolled on https://ca.trufo.ai, and chain to TCA Test Root CA (https://test.ca.trufo.ai/root-ca.crt) through the TCA Test CAWG Interim Issuing CA. They are not listed, not revocable, and not covered by OCSP.
from pathlib import Path
from trufo import generate_keypair, request_cawg_dummy_cert
from trufo.crypt.algorithms import SigningAlgorithm
cawg_priv_pem, _ = generate_keypair(SigningAlgorithm.ES256)
cawg_chain_pem = request_cawg_dummy_cert(
org_name="Example Corp",
common_name="Example Corp",
private_key_signer=cawg_priv_pem,
country="US", # required; the CA refuses an enrollment without it
)
Path("dummy_cawg.key").write_bytes(cawg_priv_pem) # dev/test only; use KMS/HSM in production
Path("dummy_cawg_chain.pem").write_bytes(cawg_chain_pem)
Checkpoint: inspect with openssl x509 -in dummy_cawg_chain.pem -subject -issuer -dates -noout.
Enroll a production certificate
request_cawg_interim_cert() requests a short-lived enrollment token (CSR JWT) with POST /ra/cawg-interim/csr-jwt (MFA-verified owner/admin access token) and enrolls through Enrollment over Secure Transport (EST) at POST https://ca.trufo.ai/.well-known/est/cawg-interim/simpleenroll.
from pathlib import Path
from trufo import generate_keypair, request_cawg_interim_cert
from trufo.crypt.algorithms import SigningAlgorithm
from trufo.util.credentials import load_session
session = load_session() # saved by `trufo login`
# or an AWSKMSPrivateKey / GCPKMSPrivateKey from trufo.crypt.kms
cawg_key, _ = generate_keypair(SigningAlgorithm.ES256)
cawg_chain_pem = request_cawg_interim_cert(session, cawg_key, validity_days=366)
Path("cawg_chain.pem").write_bytes(cawg_chain_pem)
The returned PEM chain holds the leaf and the issuing CA; the root is omitted. Non-Python clients call POST /ra/cawg-interim/csr-jwt and the EST endpoint directly, following Wire notes for Rust, Go, and C clients.
Store, wire, and manage
- Key custody: keep the leaf key in a KMS or HSM (
AWSKMSPrivateKeyandGCPKMSPrivateKeyare supported intrufo.crypt.kms). Generate a fresh key for each enrollment; reusing a public key returns409 PublicKeyAlreadyUsed. - Signer configuration: configure your C2PA library’s CAWG X.509 identity signer with the
cawg-interimkey and certificate chain. Thecawg.identityassertion it produces covers the assertions it references (such ascawg.metadataandcawg.training-mining); the outer claim is still signed with your C2PA Claim Signing certificate. - Timestamps and OCSP: add RFC 3161 timestamps and staple OCSP responses from
https://ocsp.trufo.ai/cawg(6. Timestamps and OCSP). - List and revoke:
POST /cert/listlists every certificate issued to your organization (organization-level CAWG certificates havegpi_idandgp_idset tonull).POST /cert/revokerevokes an enrolled certificate (MFA-verified owner/admin session; Trufo-managedorg_interimcertificates showrevocable: falseand return400 NotRevocable). Plan renewal before expiry and refresh stapled OCSP responses after rotating or revoking.
5. Verify CAWG Identity
CAWG identity assertions are validated against a separate CAWG trust list rather than claim-signing anchors:
- Test assets (
cawg_identity_id="test"or dummycawg-interim-testcertificates): add TCA Test Root CA (https://test.ca.trufo.ai/root-ca.crt) as a CAWG trust anchor (Verification). - Production assets (
org_interimor enrolledcawg-interimcertificates): inspect at verify.trufo.ai or verify withc2patool/c2pa-rsagainsthttps://ca.trufo.ai/root-ca.crt(Verification).
Next Steps
- Add RFC 3161 timestamps and OCSP stapling for an in-house signer: 6. Timestamps and OCSP
- Add durable Pawprint watermarks so provenance survives metadata stripping: 8. Watermarking with Pawprint