importSpkiPem
Import a public key from PEM-encoded SubjectPublicKeyInfo.
ts
function importSpkiPem(
pem: string,
algorithm?: PublicKeyImportInput,
): Promise<ImportKeyResult<CryptoKey>>Parameters
pem:stringalgorithm?:PublicKeyImportInput
See also
importSpkiPemOrThrowfor the throwing variant