Skip to content

setEndDate cannot have a date after year 2038 #1166

@T3N4K4

Description

@T3N4K4

I am using phpseclib 1.0(.7) (since it is LTS and provides the lifetime certificates) and currently I am trying to validate some dates in certificates with the "validateDate()" function.

The problem is that I can only use an end date which is before year 2038 for my certificates because of the "year 2038 problem".

A "lifetime" end date has a minor problem, too.
The rfc string 99991231235959Z is working for me only with 99981231235959Z since the date class otherwise does not accept the new value. It seems that date only accepts years until 9999 and not above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions