Skip to content

Full CA chain #45

Closed
Closed

Description

@MarkoPomerants

I know documentation says to pass in intermediate CAs. But Mobile-ID and Smart-ID libraries require full chain - so I can't reference the same CA directory.

The "getChain()" returns

  1. current cert
  2. intermediate certs...
  3. root cert

Would be nice if this would return the second (intermediate) cert otherwise OCSP revocation check will fail.

if ($certificate->validateSignature()) {
$chain = $certificate->getChain();
$trustedCACert = end($chain);
// Verify that the trusted CA cert is presently valid before returning the result.
self::certificateIsValidOnDate($trustedCACert, $now, "Trusted CA");
return $trustedCACert;
}

Activity

  1. added 4 commits that reference this issue on Mar 9, 2026
    a750b5a
    6604711
    b945f9d
    d732551
  2. linked a pull request that will close this issueValidate certificate next certificate from chain #48on Apr 14, 2026
  3. added a commit that references this issue on May 4, 2026
    dbf13c7
  4. added a commit that references this issue on May 22, 2026
    e9bfff1
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions