| 1 |
.\" Man page generated from reStructuredText |
| 2 |
.\" by the Docutils 0.22.4 manpage writer. |
| 3 |
. |
| 4 |
. |
| 5 |
.nr rst2man-indent-level 0 |
| 6 |
. |
| 7 |
.de1 rstReportMargin |
| 8 |
\\$1 \\n[an-margin] |
| 9 |
level \\n[rst2man-indent-level] |
| 10 |
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 11 |
- |
| 12 |
\\n[rst2man-indent0] |
| 13 |
\\n[rst2man-indent1] |
| 14 |
\\n[rst2man-indent2] |
| 15 |
.. |
| 16 |
.de1 INDENT |
| 17 |
.\" .rstReportMargin pre: |
| 18 |
. RS \\$1 |
| 19 |
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] |
| 20 |
. nr rst2man-indent-level +1 |
| 21 |
.\" .rstReportMargin post: |
| 22 |
.. |
| 23 |
.de UNINDENT |
| 24 |
. RE |
| 25 |
.\" indent \\n[an-margin] |
| 26 |
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 27 |
.nr rst2man-indent-level -1 |
| 28 |
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 29 |
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u |
| 30 |
.. |
| 31 |
.TH "DNSSEC-SETTIME" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9" |
| 32 |
.SH NAME |
| 33 |
dnssec-settime \- set the key timing metadata for a DNSSEC key |
| 34 |
.SH SYNOPSIS |
| 35 |
.sp |
| 36 |
\fBdnssec\-settime\fP [\fB\-f\fP] [\fB\-K\fP directory] [\fB\-L\fP ttl] [\fB\-P\fP date/offset] [\fB\-P\fP ds date/offset] [\fB\-P\fP sync date/offset] [\fB\-A\fP date/offset] [\fB\-R\fP date/offset] [\fB\-I\fP date/offset] [\fB\-D\fP date/offset] [\fB\-D\fP ds date/offset] [\fB\-D\fP sync date/offset] [\fB\-S\fP key] [\fB\-i\fP interval] [\fB\-h\fP] [\fB\-V\fP] [\fB\-v\fP level] [\fB\-E\fP engine] {keyfile} [\fB\-s\fP] [\fB\-g\fP state] [\fB\-d\fP state date/offset] [\fB\-k\fP state date/offset] [\fB\-r\fP state date/offset] [\fB\-z\fP state date/offset] |
| 37 |
.SH DESCRIPTION |
| 38 |
.sp |
| 39 |
\fBdnssec\-settime\fP reads a DNSSEC private key file and sets the key |
| 40 |
timing metadata as specified by the \fB\-P\fP, \fB\-A\fP, \fB\-R\fP, |
| 41 |
\fB\-I\fP, and \fB\-D\fP options. The metadata can then be used by |
| 42 |
\fBdnssec\-signzone\fP \%<#\:std-iscman-dnssec-signzone> or other signing software to determine when a key is |
| 43 |
to be published, whether it should be used for signing a zone, etc. |
| 44 |
.sp |
| 45 |
If none of these options is set on the command line, |
| 46 |
\fBdnssec\-settime\fP simply prints the key timing metadata already stored |
| 47 |
in the key. |
| 48 |
.sp |
| 49 |
When key metadata fields are changed, both files of a key pair |
| 50 |
(\fBKnnnn.+aaa+iiiii.key\fP and \fBKnnnn.+aaa+iiiii.private\fP) are |
| 51 |
regenerated. |
| 52 |
.sp |
| 53 |
Metadata fields are stored in the private file. A |
| 54 |
human\-readable description of the metadata is also placed in comments in |
| 55 |
the key file. The private file\(aqs permissions are always set to be |
| 56 |
inaccessible to anyone other than the owner (mode 0600). |
| 57 |
.sp |
| 58 |
When working with state files, it is possible to update the timing metadata in |
| 59 |
those files as well with \fB\-s\fP\&. With this option, it is also possible |
| 60 |
to update key states with \fB\-d\fP (DS), \fB\-k\fP (DNSKEY), \fB\-r\fP |
| 61 |
(RRSIG of KSK), or \fB\-z\fP (RRSIG of ZSK). Allowed states are HIDDEN, |
| 62 |
RUMOURED, OMNIPRESENT, and UNRETENTIVE. |
| 63 |
.sp |
| 64 |
The goal state of the key can also be set with \fB\-g\fP\&. This should be either |
| 65 |
HIDDEN or OMNIPRESENT, representing whether the key should be removed from the |
| 66 |
zone or published. |
| 67 |
.sp |
| 68 |
It is NOT RECOMMENDED to manipulate state files manually, except for testing |
| 69 |
purposes. |
| 70 |
.SH OPTIONS |
| 71 |
.INDENT 0.0 |
| 72 |
.TP |
| 73 |
.B \-f |
| 74 |
This option forces an update of an old\-format key with no metadata fields. Without |
| 75 |
this option, \fBdnssec\-settime\fP fails when attempting to update a |
| 76 |
legacy key. With this option, the key is recreated in the new |
| 77 |
format, but with the original key data retained. The key\(aqs creation |
| 78 |
date is set to the present time. If no other values are |
| 79 |
specified, then the key\(aqs publication and activation dates are also |
| 80 |
set to the present time. |
| 81 |
.UNINDENT |
| 82 |
.INDENT 0.0 |
| 83 |
.TP |
| 84 |
.B \-K directory |
| 85 |
This option sets the directory in which the key files are to reside. |
| 86 |
.UNINDENT |
| 87 |
.INDENT 0.0 |
| 88 |
.TP |
| 89 |
.B \-L ttl |
| 90 |
This option sets the default TTL to use for this key when it is converted into a |
| 91 |
DNSKEY RR. This is the TTL used when the key is imported into a zone, |
| 92 |
unless there was already a DNSKEY RRset in |
| 93 |
place, in which case the existing TTL takes precedence. If this |
| 94 |
value is not set and there is no existing DNSKEY RRset, the TTL |
| 95 |
defaults to the SOA TTL. Setting the default TTL to \fB0\fP or \fBnone\fP |
| 96 |
removes it from the key. |
| 97 |
.UNINDENT |
| 98 |
.INDENT 0.0 |
| 99 |
.TP |
| 100 |
.B \-h |
| 101 |
This option emits a usage message and exits. |
| 102 |
.UNINDENT |
| 103 |
.INDENT 0.0 |
| 104 |
.TP |
| 105 |
.B \-V |
| 106 |
This option prints version information. |
| 107 |
.UNINDENT |
| 108 |
.INDENT 0.0 |
| 109 |
.TP |
| 110 |
.B \-v level |
| 111 |
This option sets the debugging level. |
| 112 |
.UNINDENT |
| 113 |
.INDENT 0.0 |
| 114 |
.TP |
| 115 |
.B \-E engine |
| 116 |
This option specifies the cryptographic hardware to use, when applicable. |
| 117 |
.sp |
| 118 |
When BIND 9 is built with OpenSSL, this needs to be set to the OpenSSL |
| 119 |
engine identifier that drives the cryptographic accelerator or |
| 120 |
hardware service module (usually \fBpkcs11\fP). |
| 121 |
.UNINDENT |
| 122 |
.SH TIMING OPTIONS |
| 123 |
.sp |
| 124 |
Dates can be expressed in the format YYYYMMDD or YYYYMMDDHHMMSS |
| 125 |
(which is the format used inside key files), |
| 126 |
or \(aqDay Mon DD HH:MM:SS YYYY\(aq (as printed by \fBdnssec\-settime \-p\fP), |
| 127 |
or UNIX epoch time (as printed by \fBdnssec\-settime \-up\fP), |
| 128 |
or the literal \fBnow\fP\&. |
| 129 |
.sp |
| 130 |
The argument can be followed by \fB+\fP or \fB\-\fP and an offset from the |
| 131 |
given time. The literal \fBnow\fP can be omitted before an offset. The |
| 132 |
offset can be followed by one of the suffixes \fBy\fP, \fBmo\fP, \fBw\fP, |
| 133 |
\fBd\fP, \fBh\fP, or \fBmi\fP, so that it is computed in years (defined as |
| 134 |
365 24\-hour days, ignoring leap years), months (defined as 30 24\-hour |
| 135 |
days), weeks, days, hours, or minutes, respectively. Without a suffix, |
| 136 |
the offset is computed in seconds. |
| 137 |
.sp |
| 138 |
To unset a date, use \fBnone\fP, \fBnever\fP, or \fBunset\fP\&. |
| 139 |
.sp |
| 140 |
All these formats are case\-insensitive. |
| 141 |
.INDENT 0.0 |
| 142 |
.TP |
| 143 |
.B \-P date/offset |
| 144 |
This option sets the date on which a key is to be published to the zone. After |
| 145 |
that date, the key is included in the zone but is not used |
| 146 |
to sign it. |
| 147 |
.INDENT 7.0 |
| 148 |
.TP |
| 149 |
.B ds date/offset |
| 150 |
This option sets the date on which DS records that match this key have been |
| 151 |
seen in the parent zone. |
| 152 |
.UNINDENT |
| 153 |
.INDENT 7.0 |
| 154 |
.TP |
| 155 |
.B sync date/offset |
| 156 |
This option sets the date on which CDS and CDNSKEY records that match this key |
| 157 |
are to be published to the zone. |
| 158 |
.UNINDENT |
| 159 |
.UNINDENT |
| 160 |
.INDENT 0.0 |
| 161 |
.TP |
| 162 |
.B \-A date/offset |
| 163 |
This option sets the date on which the key is to be activated. After that date, |
| 164 |
the key is included in the zone and used to sign it. |
| 165 |
.UNINDENT |
| 166 |
.INDENT 0.0 |
| 167 |
.TP |
| 168 |
.B \-R date/offset |
| 169 |
This option sets the date on which the key is to be revoked. After that date, the |
| 170 |
key is flagged as revoked. It is included in the zone and |
| 171 |
is used to sign it. |
| 172 |
.UNINDENT |
| 173 |
.INDENT 0.0 |
| 174 |
.TP |
| 175 |
.B \-I date/offset |
| 176 |
This option sets the date on which the key is to be retired. After that date, the |
| 177 |
key is still included in the zone, but it is not used to |
| 178 |
sign it. |
| 179 |
.UNINDENT |
| 180 |
.INDENT 0.0 |
| 181 |
.TP |
| 182 |
.B \-D date/offset |
| 183 |
This option sets the date on which the key is to be deleted. After that date, the |
| 184 |
key is no longer included in the zone. (However, it may remain in the key |
| 185 |
repository.) |
| 186 |
.INDENT 7.0 |
| 187 |
.TP |
| 188 |
.B ds date/offset |
| 189 |
This option sets the date on which the DS records that match this key have |
| 190 |
been seen removed from the parent zone. |
| 191 |
.UNINDENT |
| 192 |
.INDENT 7.0 |
| 193 |
.TP |
| 194 |
.B sync date/offset |
| 195 |
This option sets the date on which the CDS and CDNSKEY records that match this |
| 196 |
key are to be deleted. |
| 197 |
.UNINDENT |
| 198 |
.UNINDENT |
| 199 |
.INDENT 0.0 |
| 200 |
.TP |
| 201 |
.B \-S predecessor key |
| 202 |
This option selects a key for which the key being modified is an explicit |
| 203 |
successor. The name, algorithm, size, and type of the predecessor key |
| 204 |
must exactly match those of the key being modified. The activation |
| 205 |
date of the successor key is set to the inactivation date of the |
| 206 |
predecessor. The publication date is set to the activation date |
| 207 |
minus the prepublication interval, which defaults to 30 days. |
| 208 |
.UNINDENT |
| 209 |
.INDENT 0.0 |
| 210 |
.TP |
| 211 |
.B \-i interval |
| 212 |
This option sets the prepublication interval for a key. If set, then the |
| 213 |
publication and activation dates must be separated by at least this |
| 214 |
much time. If the activation date is specified but the publication |
| 215 |
date is not, the publication date defaults to this much time |
| 216 |
before the activation date; conversely, if the publication date is |
| 217 |
specified but not the activation date, activation is set to |
| 218 |
this much time after publication. |
| 219 |
.sp |
| 220 |
If the key is being created as an explicit successor to another key, |
| 221 |
then the default prepublication interval is 30 days; otherwise it is |
| 222 |
zero. |
| 223 |
.sp |
| 224 |
As with date offsets, if the argument is followed by one of the |
| 225 |
suffixes \fBy\fP, \fBmo\fP, \fBw\fP, \fBd\fP, \fBh\fP, or \fBmi\fP, the interval is |
| 226 |
measured in years, months, weeks, days, hours, or minutes, |
| 227 |
respectively. Without a suffix, the interval is measured in seconds. |
| 228 |
.UNINDENT |
| 229 |
.SH KEY STATE OPTIONS |
| 230 |
.sp |
| 231 |
To test dnssec\-policy it may be necessary to construct keys with artificial |
| 232 |
state information; these options are used by the testing framework for that |
| 233 |
purpose, but should never be used in production. |
| 234 |
.sp |
| 235 |
Known key states are HIDDEN, RUMOURED, OMNIPRESENT, and UNRETENTIVE. |
| 236 |
.INDENT 0.0 |
| 237 |
.TP |
| 238 |
.B \-s |
| 239 |
This option indicates that when setting key timing data, the state file should also be updated. |
| 240 |
.UNINDENT |
| 241 |
.INDENT 0.0 |
| 242 |
.TP |
| 243 |
.B \-g state |
| 244 |
This option sets the goal state for this key. Must be HIDDEN or OMNIPRESENT. |
| 245 |
.UNINDENT |
| 246 |
.INDENT 0.0 |
| 247 |
.TP |
| 248 |
.B \-d state date/offset |
| 249 |
This option sets the DS state for this key as of the specified date, offset from the current date. |
| 250 |
.UNINDENT |
| 251 |
.INDENT 0.0 |
| 252 |
.TP |
| 253 |
.B \-k state date/offset |
| 254 |
This option sets the DNSKEY state for this key as of the specified date, offset from the current date. |
| 255 |
.UNINDENT |
| 256 |
.INDENT 0.0 |
| 257 |
.TP |
| 258 |
.B \-r state date/offset |
| 259 |
This option sets the RRSIG (KSK) state for this key as of the specified date, offset from the current date. |
| 260 |
.UNINDENT |
| 261 |
.INDENT 0.0 |
| 262 |
.TP |
| 263 |
.B \-z state date/offset |
| 264 |
This option sets the RRSIG (ZSK) state for this key as of the specified date, offset from the current date. |
| 265 |
.UNINDENT |
| 266 |
.SH PRINTING OPTIONS |
| 267 |
.sp |
| 268 |
\fBdnssec\-settime\fP can also be used to print the timing metadata |
| 269 |
associated with a key. |
| 270 |
.INDENT 0.0 |
| 271 |
.TP |
| 272 |
.B \-u |
| 273 |
This option indicates that times should be printed in Unix epoch format. |
| 274 |
.UNINDENT |
| 275 |
.INDENT 0.0 |
| 276 |
.TP |
| 277 |
.B \-p C/P/Pds/Psync/A/R/I/D/Dds/Dsync/all |
| 278 |
This option prints a specific metadata value or set of metadata values. |
| 279 |
The \fB\-p\fP option may be followed by one or more of the following letters or |
| 280 |
strings to indicate which value or values to print: \fBC\fP for the |
| 281 |
creation date, \fBP\fP for the publication date, \fBPds\(ga for the DS publication |
| 282 |
date, \(ga\(gaPsync\fP for the CDS and CDNSKEY publication date, \fBA\fP for the |
| 283 |
activation date, \fBR\fP for the revocation date, \fBI\fP for the inactivation |
| 284 |
date, \fBD\fP for the deletion date, \fBDds\fP for the DS deletion date, |
| 285 |
and \fBDsync\fP for the CDS and CDNSKEY deletion date. To print all of the |
| 286 |
metadata, use \fBall\fP\&. |
| 287 |
.UNINDENT |
| 288 |
.SH SEE ALSO |
| 289 |
.sp |
| 290 |
\fBdnssec\-keygen(8)\fP \%<#\:std-iscman-dnssec-keygen>, \fBdnssec\-signzone(8)\fP \%<#\:std-iscman-dnssec-signzone>, BIND 9 Administrator Reference Manual, |
| 291 |
\fBRFC 5011\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc5011\:.html>\&. |
| 292 |
.SH Author |
| 293 |
Internet Systems Consortium |
| 294 |
.SH Copyright |
| 295 |
2026, Internet Systems Consortium |
| 296 |
.\" End of generated man page. |