Skip to content

Proper certificate validation #86

Description

@cyraxx

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestimportantFundamental functionality that's missing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions