• Create key name from subject name, key name, or certificate name.

    Parameters

    • name: Name

      Subject name, key name, or certificate name.

    • opts: Partial<Pick<KeyNameFields, "keyId">> = {}

    Returns Name

    If name is a subject name, it's concatenated with additional components to make a key name:

    • KeyId component is set to .opts.keyId. If unset, it defaults to TimestampNameComponent of the current timestamp.

    If name is a key name, it is returned unchanged.

    If name is a certificate name, its key name portion is returned.