Currently, we're validating that a claim's signature is valid and matches the certificate's public key. We also check the certificates for semantic validity (such as key usage parameters).
However there are no checks regarding the trustworthiness of the certificate. This needs a couple of things:
- Validate the certificate chain. This should be straightforward using
@PeculiarVentures/x509 or pkijs functions, it will just need some work to ensure our custom Crypto is used instead of web crypto.
- Match the certificate chain against a trust store. This could be the temporary C2PA trust list or a custom one.
- Implement OCSP checks.
- Do the same for signed timestamps.
Currently, we're validating that a claim's signature is valid and matches the certificate's public key. We also check the certificates for semantic validity (such as key usage parameters).
However there are no checks regarding the trustworthiness of the certificate. This needs a couple of things:
@PeculiarVentures/x509orpkijsfunctions, it will just need some work to ensure our customCryptois used instead of web crypto.