Fix RangeError bignum too big to convert into `long' on armhf platforms
On a 32-bit platform such as armhf, the original calculation for the end date of the registry SSL certificate overflowed. Use TimeDate to prevent this from occurring. Closes #1390
This commit is contained in:
parent
09586f6bb3
commit
4ba24bfe21
|
@ -88,7 +88,7 @@ module Registry
|
|||
cert = OpenSSL::X509::Certificate.new
|
||||
cert.subject = cert.issuer = OpenSSL::X509::Name.parse(subject)
|
||||
cert.not_before = Time.now
|
||||
cert.not_after = Time.now + 18250 * 24 * 60 * 60
|
||||
cert.not_after = (DateTime.now + 365 * 50).to_time
|
||||
cert.public_key = key.public_key
|
||||
cert.serial = 0x0
|
||||
cert.version = 2
|
||||
|
|
Loading…
Reference in New Issue