Variable selfSignedMlDsaCertificate
selfSignedMlDsaCertificate: (
opts: any,
) => {
algorithm: string;
certB64: string;
certPem: string;
notAfter: Date;
notBefore: Date;
privateKeyPem: any;
publicKeyPem: any;
} = selfSignedMlDsaCertificate
Type Declaration
-
- (
opts: any,
): {
algorithm: string;
certB64: string;
certPem: string;
notAfter: Date;
notBefore: Date;
privateKeyPem: any;
publicKeyPem: any;
}
-
Returns {
algorithm: string;
certB64: string;
certPem: string;
notAfter: Date;
notBefore: Date;
privateKeyPem: any;
publicKeyPem: any;
}
{ algorithm, privateKeyPem, publicKeyPem, certPem, certB64, notBefore, notAfter }
Makes an ML-DSA key pair and a self-signed certificate over it (FIPS 204, RFC 9881). Needs a runtime that can generate ML-DSA keys.