Skip to content

ValidityInput

Configures the certificate validity window.

If notAfter is omitted, it is derived from notBefore plus days. If both notAfter and days are omitted, the certificate is valid for 30 days.

ts
interface ValidityInput {
	readonly notBefore?: Date;
	readonly notAfter?: Date;
	readonly days?: number;
}

Properties

  • readonly notBefore?: Date — Start of the validity window.

    Defaults to the current time.

  • readonly notAfter?: Date — End of the validity window.

    Must be later than notBefore.

  • readonly days?: number — Number of days to add to notBefore when notAfter is omitted.

Released under the MIT License.