importOpenSshPrivateKeyOrThrow
importOpenSshPrivateKeyOrThrow
Throwing variant of importOpenSshPrivateKey.
ts
function importOpenSshPrivateKeyOrThrow(
input: string | Uint8Array,
options: SshImportOptions,
): Promise<ImportedOpenSshPrivateKey>Parameters
input:string|Uint8Arrayoptions:SshImportOptions
Throws
ResultError— Carrying anSshErrorCodeascode