Constructors

Properties

ECKeyAlgo: { hash: string; name: string; namedCurve: string } = ...
SigningKeyAlgo: {
    hash: string;
    modulusLength: number;
    name: string;
    publicExponent: Uint8Array<ArrayBuffer>;
} = ...
SigningKeyUsage: KeyUsage[] = ...
TLSCertKeyExtendedUsages: ExtendedKeyUsage[] = ...
TLSCertKeyUsages: number = ...
TLSKeyAlgo: {
    hash: string;
    modulusLength: number;
    name: string;
    publicExponent: Uint8Array<ArrayBuffer>;
} = ...
TLSKeyUsage: KeyUsage[] = ...

Methods

  • Convert PEM private key into CryptoKey

    Parameters

    • pemStr: string

      PEM string

    • algo: any

      key algorithm

    • OptionalkeyUsages: KeyUsage[] = ...

    Returns Promise<CryptoKey>

  • Convert CryptoKey into PEM string

    Parameters

    • privateKey: CryptoKey

    Returns Promise<string>

  • Generate gRPC TLS key

    It generates TLS keys in PEM format such as below: hedera-.key hedera-.crt

    Parameters

    • nodeAlias: `node${number}`
    • distinguishedName: Name = ...

      distinguished name as: new x509.Name(CN=${nodeAlias},ST=${state},L=${locality},O=${org},OU=${orgUnit},C=${country})

    Returns Promise<NodeKeyObject>

  • Given the path to the PEM certificate (Base64 ASCII), will return the DER (raw binary) bytes

    Parameters

    • pemCertFullPath: string

    Returns Uint8Array<ArrayBuffer>

  • Return a list of subtasks to generate gossip keys

    WARNING: These tasks MUST run in sequence.

    Parameters

    • nodeAliases: NodeAliases
    • keysDir: string

      keys directory

    • curDate: Date = ...

      current date

    • OptionalallNodeAliases: NodeAliases = null

      includes the nodeAliases to get new keys as well as existing nodeAliases that will be included in the public.pfx file

    Returns ListrTask[]

    a list of subtasks

  • Return a list of subtasks to generate gRPC TLS keys

    WARNING: These tasks should run in sequence

    Parameters

    • nodeAliases: NodeAliases
    • keysDir: string

      keys directory

    • curDate: Date = ...

      current date

    Returns ListrTask[]

    return a list of subtasks