UNPKG

@ne1410s/crypto

Version:

Lightweight ES5 script to provide crypto utilities

20 lines (19 loc) 435 B
import { JsonWebKey } from 'node:crypto'; export interface IKeyPair_Jwk { publicJwk: JsonWebKey; privateJwk: JsonWebKey; } export interface ICsr_Params { domains: Array<string>; country?: string; town?: string; county?: string; company?: string; department?: string; } export interface ICsr_Result extends IKeyPair_Jwk { der: string; pem: string; pkcs8_pem: string; pkcs8_b64: string; }