edgeport - v1.0.3
    Preparing search index...

    Function loadUserKey

    • Loads a user private key for publickey authentication.

      Accepts an extractable private CryptoKey or a PEM in any of these forms: unencrypted PKCS#8 (BEGIN PRIVATE KEY), encrypted PKCS#8 (BEGIN ENCRYPTED PRIVATE KEY, PBES2), or the OpenSSH format (BEGIN OPENSSH PRIVATE KEY), encrypted or not. Encrypted keys require passphrase.

      Parameters

      • input: CryptoKey | { passphrase?: string; pem: string }

        A { pem, passphrase? } object or an extractable private CryptoKey.

      Returns Promise<UserKey>

      A UserKey that can sign auth requests.

      If the key cannot be parsed or the passphrase is wrong/missing.

      1.0.0