wahern / luaossl

Most comprehensive OpenSSL module in the Lua universe.
http://25thandclement.com/~william/projects/luaossl.html
Other
140 stars 49 forks source link

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

Closed littlerunavay closed 4 years ago

littlerunavay commented 4 years ago

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.

daurnimator commented 4 years ago

See https://github.com/wahern/luaossl/pull/179