Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/jose/key/import.ts

JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Extremely Popular
Go to Latest
import * as jose from "https://deno.land/x/jose@v5.9.3/key/import.ts";

Functions

Imports a JWK to a runtime-specific key representation (KeyLike). Either the JWK "alg" (Algorithm) Parameter, or the optional "alg" argument, must be present.

Imports a PEM-encoded PKCS#8 string as a runtime-specific private key representation (!KeyObject or !CryptoKey).

Imports a PEM-encoded SPKI string as a runtime-specific public key representation (!KeyObject or !CryptoKey).

Imports the SPKI from an X.509 string certificate as a runtime-specific public key representation (!KeyObject or !CryptoKey).