Skip to content

importPkcs1Pem

Import an RSA private key from PEM-encoded PKCS#1 RSAPrivateKey.

ts
function importPkcs1Pem(
	pem: string,
	_: unknown,
): Promise<ImportKeyResult<CryptoKey>>

Parameters

  • pem: string
  • _: unknown

See also

  • importPkcs1PemOrThrow for the throwing variant

Released under the MIT License.