# XV-SA-03

Source: https://xmlvalid.com/rules/XV-SA-03

> The certificate digest in the signed properties (xades:CertDigest, …) is not that of the certificate in the signature (…).

- Level: error
- Rule sets: ZATCA cryptographic stamp and QR code checks Security Features Implementation Standards 1.1, SDK 3.4.6
- Context: `/*[ext:UBLExtensions//ds:Signature]`
- Test: `not($certDigest and $certificate) or $certDigest = js:xvDigest($certificate, 'base64hex')`

Validate a document against these rules: https://xmlvalid.com/validate
