importPkcs8Pem
importPkcs8Pem
Import a private key from PEM-encoded PKCS#8 PrivateKeyInfo.
ts
function importPkcs8Pem(
pem: string,
algorithm?: PrivateKeyImportInput,
): Promise<ImportKeyResult<CryptoKey>>Parameters
pem:stringalgorithm?:PrivateKeyImportInput
See also
importPkcs8PemOrThrowfor the throwing variant