northox / dnssec-reverb

Automate DNSSEC key rotation for both ZSK KSK
Other
26 stars 10 forks source link

Format EXPIRE based on whether we use bind or nsd #10

Closed jfrioux closed 6 years ago

jfrioux commented 6 years ago

Simple check, based on which command we specify in config.

Simply returns +2678400 ( 31 days) for bind, no calculations are necessary ATM

References:

From ldns-signzone man page:

-e date Set expiration date of the signatures to this date, the format can be YYYYMMDD[hhmmss], or a timestamp.

From Bind's dnssec-signzone man page:

-e end-time Specify the date and time when the generated RRSIG records expire. As with start-time, an absolute time is indicated in YYYYMMDDHHMMSS notation. A time relative to the start time is indicated with +N, which is N seconds from the start time. A time relative to the current time is indicated with now+N. If no end-time is specified, 30 days from the start time is used as a default. end-time must be later than start-time.

dnssec-signzone's start date is current date -1 hour if not specified.

northox commented 6 years ago

This should fix #8.