Skip to content

Full CA chain #45

@MarkoPomerants

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;
}

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