File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,11 @@ def sign_jar(jar)
94
94
# certificate not_after times later than Jan 1st 2038, since long is 32-bit.
95
95
# Set not_after to a random time 2~ years before the first bad date.
96
96
#
97
- # FIXME: this will break again in 2031, hopefully all 32-bit systems will
98
- # be dead by then...
99
- cert . not_after = Time . new ( "2034/01/01" ) + rand ( 3600 * 24 * 365 * 2 )
97
+ # FIXME: this will break again randomly starting in late 2033, hopefully
98
+ # all 32-bit systems will be dead by then...
99
+ #
100
+ # The timestamp 0x78045d81 equates to 2033-10-22 00:00:01 UTC
101
+ cert . not_after = Time . at ( 0x78045d81 + rand ( 0x7fffffff - 0x78045d81 ) )
100
102
101
103
# If this line is left out, signature verification fails on OSX.
102
104
cert . sign ( key , OpenSSL ::Digest ::SHA1 . new )
You can’t perform that action at this time.
0 commit comments