UNPKG

@xevolab/jades

Version:

JAdES Digital Signatures compatible with the ETSI TS 119 182-1 Standard

10 lines (9 loc) 342 B
import { X509Certificate } from "crypto"; /** * Generate a Key ID (kid) from a certificate * * `kid` must be base64 encoding of one DER-encoded instance of type IssuerSerial. * └-> https://www.ietf.org/rfc/rfc5035.txt * └-> https://www.ietf.org/rfc/rfc5280.txt */ export default function generateKid(cert: X509Certificate): string;