Skip to content

Commit

Permalink
fix: typo in importPKSC8 error message (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
richpryce committed Oct 26, 2022
1 parent 257f2e7 commit 746bc64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/key/import.ts
Expand Up @@ -195,7 +195,7 @@ export async function importPKCS8(
options?: PEMImportOptions,
): Promise<KeyLike> {
if (typeof pkcs8 !== 'string' || pkcs8.indexOf('-----BEGIN PRIVATE KEY-----') !== 0) {
throw new TypeError('"pkcs8" must be PCKS8 formatted string')
throw new TypeError('"pkcs8" must be PKCS8 formatted string')
}
return importPrivate(pkcs8, alg, options)
}
Expand Down

0 comments on commit 746bc64

Please sign in to comment.