Skip to content

Commit c741b7e

Browse files
committed
Update images of error messages for validation etc
1 parent f568034 commit c741b7e

File tree

4 files changed

+44
-4
lines changed

4 files changed

+44
-4
lines changed

docs/trust-list.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The C2PA intends to publish an official public list of known certificates. Until
2323
The [contentcredentials.org](https://contentcredentials.org/) site hosts the following files that it uses to [validate signing certificates](https://c2pa.org/specifications/specifications/2.0/specs/C2PA_Specification.html#_c2pa_signers). Together, these files form the _temporary known certificate list_:
2424

2525
- **The temporary end-entity certificate list** in https://contentcredentials.org/trust/allowed.pem consists of end-entity certificates. If the certificate is on this list, it is considered "known." To reduce bandwidth consumption, a [version with SHA-256 hashes](https://contentcredentials.org/trust/allowed.sha256.txt) of the certificates is also available.
26-
- **The temporary known anchor list** in https://contentcredentials.org/trust/anchors.pem contains the list of known anchor certificates. If an end-entity [certificate's chain](../getting-started.mdx#signing-and-certificates) can be traced back to an anchor certificate on this list, the certificate is considered "known."
26+
- **The temporary known anchor list** in https://contentcredentials.org/trust/anchors.pem contains the list of known anchor certificates. If an end-entity [certificate's chain](getting-started.mdx#signing-and-certificates) can be traced back to an anchor certificate on this list, the certificate is considered "known."
2727
- **The configuration file**, https://contentcredentials.org/trust/store.cfg, specifies the [Extended Key Usage (EKU)](https://datatracker.ietf.org/doc/html/rfc9336) values accepted for end-entity certificates. An end-entity certificate must have at least one of the EKUs in this list to be valid.
2828

2929
## Using the known certificate list

docs/verify.mdx

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,15 @@ For example, suppose you downloaded a file from Adobe Stock and renamed it `my_s
170170

171171
This section displays the the issuer of the claim signature from the `signature_info.issuer` property in the active manifest, as shown in the example snippet below. It shows the organization name only if the signing certificate includes the "O" or [Organization Name attribute](https://www.alvestrand.no/objectid/2.5.4.10.html) (OID value 2.5.4.10) in the certificate's distinguished name information.
172172

173+
If the Content Credential was signed by a certificate that is NOT on the [known certificate list](verify-known-cert-list), such as the CAI test certificate built in to C2PA Tool, then Verify displays this notice:
174+
175+
import verify_unknown_source from '../static/img/verify-cc-unknown-source.png';
176+
177+
<img
178+
src={verify_unknown_source}
179+
style={{ width: '283px', display: 'block', margin: '10px auto' }}
180+
/>
181+
173182
If the Content Credential was signed by a certificate on the [known certificate list](verify-known-cert-list), then this section also displays the time of the claim signature from the `signature_info.time` property in the active manifest, as shown in the example snippet below. The date is converted from UTC to the local time zone.
174183

175184
```json
@@ -182,15 +191,46 @@ If the Content Credential was signed by a certificate on the [known certificate
182191

183192
If the issuer string is too long, then the date might be truncated or not shown at all. If so, refer to the [**About this Content Credential**](#about-this-content-credential) section for the full date.
184193

185-
If the Content Credential was signed by a certificate that is NOT on the [known certificate list](verify-known-cert-list), then Verify displays this notice:
194+
### Validation status
186195

187-
import verify_unknown_source from '../static/img/verify-cc-unknown-source.png';
196+
If the manifest has validation errors, then Verify displays this notice:
197+
198+
import verify_validation_error from '../static/img/verify-validation-error.png';
188199

189200
<img
190-
src={verify_unknown_source}
201+
src={verify_validation_error}
191202
style={{ width: '300px', display: 'block', margin: '10px auto' }}
192203
/>
193204

205+
Verify displays this warning if the `validation_status` array contains any elements. For example, a [this image](https://contentcredentials.org/verify?source=https://c2pa.org/public-testfiles/image/jpeg/adobe-20220124-E-dat-CA.jpg) with a hard binding hash mismatch error, as shown in [this manifest store](https://c2pa.org/public-testfiles/image/jpeg/manifests/adobe-20220124-E-dat-CA/manifest_store.json):
206+
207+
```
208+
"validation_status": [
209+
{
210+
"code": "assertion.dataHash.mismatch",
211+
"url": "self#jumbf=/c2pa/contentauth:urn:uuid:04cdf4ec-f713-4e47-a8d6-7af56501ce4b/c2pa.assertions/c2pa.hash.data",
212+
"explanation": "asset hash error, name: jumbf manifest, error: hash verification( Hashes do not match )"
213+
}
214+
]
215+
```
216+
217+
Another example that can result in this message is [this image](https://contentcredentials.org/verify?source=https://c2pa.org/public-testfiles/image/jpeg/adobe-20220124-E-clm-CAICAI.jpg) with a missing referenced claim, as shown in [this manifest store](https://c2pa.org/public-testfiles/image/jpeg/manifests/adobe-20220124-E-clm-CAICAI/manifest_store.json):
218+
219+
```
220+
"validation_status": [
221+
{
222+
"code": "assertion.hashedURI.mismatch",
223+
"url": "self#jumbf=c2pa.assertions/c2pa.ingredient__1",
224+
"explanation": "hash does not match assertion data: self#jumbf=c2pa.assertions/c2pa.ingredient__1"
225+
},
226+
{
227+
"code": "claim.missing",
228+
"url": "self#jumbf=/c2pa/contentbeef:urn:uuid:8bb8ad50-ef2f-4f75-b709-a0e302d58019",
229+
"explanation": "ingredient not found"
230+
}
231+
]
232+
```
233+
194234
### Credit and usage
195235

196236
The **Credit and usage** section displays information about the asset's author and usage rights, divided into these subsections:
8.54 KB
Loading
23.5 KB
Loading

0 commit comments

Comments
 (0)