igcv3 - v1.1.0
    Preparing search index...

    Function detectChainRoles

    • Automatically detect roles (leaf, intermediates, root) from a set of certificates. Uses AKI/SKI analysis to determine which cert is which.

      Detection logic:

      • Root: Self-signed certificate (subject == issuer)
      • Leaf: Certificate whose SKI is not referenced by any other cert's AKI
      • Intermediates: Everything else that forms part of the chain

      Parameters

      • certs: Certificate[]

        Array of certificates to analyze

      Returns DetectedChainRoles

      DetectedChainRoles with classified certificates