wahern / luaossl

Most comprehensive OpenSSL module in the Lua universe.

Home Page:http://25thandclement.com/~william/projects/luaossl.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unix timestamp bug in x509:setLifetime() and x509:getLifetime()

littlerunavay opened this issue · comments

Every time I'm trying to call agetLifetime() function on a certificate with expiration date less then 946684800 01/01/2000 @ 12:00am (UTC) in unix timestamp the function returns 4070908799 12/31/2098 @ 11:59pm (UTC).
The same behaviour noticed for setLifetime() when trying to set valid to date for less then 946684800.