- Preparing search index...
- The search index is not available
polykey
Function generateCertificate
- generateCertificate(__namedParameters): Promise<Certificate>
-
Parameters
-
__namedParameters: {
certId: CertId;
duration: number;
issuerAttrsExtra?: {
[key: string]: string[];
}[];
issuerPrivateKey: PrivateKey;
now?: Date;
subjectAttrsExtra?: {
[key: string]: string[];
}[];
subjectKeyPair: {
privateKey: PrivateKey;
publicKey: PublicKey;
};
}
-
-
duration: number
-
Optional
issuerAttrsExtra?: {
[key: string]: string[];
}[]
-
-
Optional
now?: Date
-
Optional
subjectAttrsExtra?: {
[key: string]: string[];
}[]
-
subjectKeyPair: {
privateKey: PrivateKey;
publicKey: PublicKey;
}
Generate x509 certificate. Duration is in seconds. X509 certificates currently use
UTCTime
format fornotBefore
andnotAfter
. This means: