expiration should be 20180515033855
inception should be 20180415033855
when parsed they are being read as int values
expiration: -917701531
inception: -917701530
the RRSIG object gets created and when getBytes() is called the values are coming back as
expiration: 20770107173251
inception: 20770107173256
I believe this could have something to do with int being a signed value in Java, but I am not sure.
according to the RFC 4034
The Signature Expiration and Inception field values specify a date
and time in the form of a 32-bit unsigned number of seconds elapsed
since 1 January 1970 00:00:00 UTC, ignoring leap seconds, in network
byte order.
Consider the following example:
expiration should be
20180515033855
inception should be20180415033855
when parsed they are being read as int values expiration:
-917701531
inception:-917701530
the RRSIG object gets created and when getBytes() is called the values are coming back as expiration:
20770107173251
inception:20770107173256
I believe this could have something to do with int being a signed value in Java, but I am not sure.
according to the RFC 4034 The Signature Expiration and Inception field values specify a date and time in the form of a 32-bit unsigned number of seconds elapsed since 1 January 1970 00:00:00 UTC, ignoring leap seconds, in network byte order.