PKI-Lite - v1.0.5
    Preparing search index...

    Represents the "To Be Signed" part of the certificate.

    TBSCertificate  ::=  SEQUENCE  {
         version         [0]  EXPLICIT Version DEFAULT v1,
         serialNumber         CertificateSerialNumber,
         signature            AlgorithmIdentifier,
         issuer               Name,
         validity             Validity,
         subject              Name,
         subjectPublicKeyInfo SubjectPublicKeyInfo,
         issuerUniqueID  [1]  IMPLICIT UniqueIdentifier OPTIONAL,
         subjectUniqueID [2]  IMPLICIT UniqueIdentifier OPTIONAL,
         extensions      [3]  EXPLICIT Extensions OPTIONAL
    }
    
    CertificateSerialNumber ::= INTEGER
    

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    extensions?: Extension[]
    issuer: RDNSequence
    issuerUniqueID?: Uint8Array<ArrayBufferLike>
    serialNumber: Integer
    subject: RDNSequence
    subjectPublicKeyInfo: SubjectPublicKeyInfo
    subjectUniqueID?: Uint8Array<ArrayBufferLike>
    validity: Validity
    version: number

    Accessors

    • get pemHeader(): string

      Gets the PEM header name for this object type. Converts the class name to uppercase for use in PEM encoding.

      Returns string

    • get pkiType(): string

      Gets the PKI type name for this object (typically the class name). Used for PEM headers and debugging output.

      Returns string

    Methods

    • Compares this PKI object with another for equality. Two objects are considered equal if their DER encodings are identical.

      Parameters

      • other: PkiBase<any>

        The other PKI object to compare with

      Returns boolean

      true if the objects are equal, false otherwise

    • Parameters

      • name:
            | "SUBJECT_KEY_IDENTIFIER"
            | "KEY_USAGE"
            | "SUBJECT_ALT_NAME"
            | "BASIC_CONSTRAINTS"
            | "CRL_NUMBER"
            | "CRL_DISTRIBUTION_POINTS"
            | "CERTIFICATE_POLICIES"
            | "AUTHORITY_KEY_IDENTIFIER"
            | "EXTENDED_KEY_USAGE"
            | "AUTHORITY_INFO_ACCESS"
            | "CRL_REASON_CODE"

      Returns undefined | Extension

    • Parameters

      • name:
            | "SUBJECT_KEY_IDENTIFIER"
            | "KEY_USAGE"
            | "SUBJECT_ALT_NAME"
            | "BASIC_CONSTRAINTS"
            | "CRL_NUMBER"
            | "CRL_DISTRIBUTION_POINTS"
            | "CERTIFICATE_POLICIES"
            | "AUTHORITY_KEY_IDENTIFIER"
            | "EXTENDED_KEY_USAGE"
            | "AUTHORITY_INFO_ACCESS"
            | "CRL_REASON_CODE"

      Returns Extension[]

    • Returns a human-readable string representation of this object. By default, returns the same as toString(), but subclasses can override for more user-friendly output.

      Returns string

      A human-readable string representation