Debian Codegraph @

doc/man/dnssec-importkey.1in

raw
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-IMPORTKEY" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9"
32 .SH NAME
33 dnssec-importkey \- import DNSKEY records from external systems so they can be managed
34 .SH SYNOPSIS
35 .sp
36 \fBdnssec\-importkey\fP [\fB\-K\fP directory] [\fB\-L\fP ttl] [\fB\-P\fP date/offset] [\fB\-P\fP sync date/offset] [\fB\-D\fP date/offset] [\fB\-D\fP sync date/offset] [\fB\-h\fP] [\fB\-v\fP level] [\fB\-V\fP] {keyfile}
37 .sp
38 \fBdnssec\-importkey\fP {\fB\-f\fP filename} [\fB\-K\fP directory] [\fB\-L\fP ttl] [\fB\-P\fP date/offset] [\fB\-P\fP sync date/offset] [\fB\-D\fP date/offset] [\fB\-D\fP sync date/offset] [\fB\-h\fP] [\fB\-v\fP level] [\fB\-V\fP] [dnsname]
39 .SH DESCRIPTION
40 .sp
41 \fBdnssec\-importkey\fP reads a public DNSKEY record and generates a pair
42 of .key/.private files. The DNSKEY record may be read from an
43 existing .key file, in which case a corresponding .private file is
44 generated, or it may be read from any other file or from the standard
45 input, in which case both .key and .private files are generated.
46 .sp
47 The newly created .private file does \fInot\fP contain private key data, and
48 cannot be used for signing. However, having a .private file makes it
49 possible to set publication (\fB\-P\fP) and deletion (\fB\-D\fP) times for the
50 key, which means the public key can be added to and removed from the
51 DNSKEY RRset on schedule even if the true private key is stored offline.
52 .sp
53 When using \fBdnssec\-policy\fP, do not use \fBdnssec\-importkey\fP to
54 import key files that cannot be used for signing. In this case, simply publish the
55 imported DNSKEY record in the zone, and make sure that the files are outside
56 the configured \fBkey\-directory\fP\&.
57 .SH OPTIONS
58 .INDENT 0.0
59 .TP
60 .B \-f filename
61 This option indicates the zone file mode. Instead of a public keyfile name, the argument is the
62 DNS domain name of a zone master file, which can be read from
63 \fBfilename\fP\&. If the domain name is the same as \fBfilename\fP, then it may be
64 omitted.
65 .sp
66 If \fBfilename\fP is set to \fB\(dq\-\(dq\fP, then the zone data is read from the
67 standard input.
68 .UNINDENT
69 .INDENT 0.0
70 .TP
71 .B \-K directory
72 This option sets the directory in which the key files are to reside.
73 .UNINDENT
74 .INDENT 0.0
75 .TP
76 .B \-L ttl
77 This option sets the default TTL to use for this key when it is converted into a
78 DNSKEY RR. This is the TTL used when the key is imported into a zone,
79 unless there was already a DNSKEY RRset in
80 place, in which case the existing TTL takes precedence. Setting the default TTL to \fB0\fP or \fBnone\fP
81 removes it from the key.
82 .UNINDENT
83 .INDENT 0.0
84 .TP
85 .B \-h
86 This option emits a usage message and exits.
87 .UNINDENT
88 .INDENT 0.0
89 .TP
90 .B \-v level
91 This option sets the debugging level.
92 .UNINDENT
93 .INDENT 0.0
94 .TP
95 .B \-V
96 This option prints version information.
97 .UNINDENT
98 .SH TIMING OPTIONS
99 .sp
100 Dates can be expressed in the format YYYYMMDD or YYYYMMDDHHMMSS.
101 (which is the format used inside key files),
102 or \(aqDay Mon DD HH:MM:SS YYYY\(aq (as printed by \fBdnssec\-settime \-p\fP),
103 or UNIX epoch time (as printed by \fBdnssec\-settime \-up\fP),
104 or the literal \fBnow\fP\&.
105 .sp
106 The argument can be followed by \fB+\fP or \fB\-\fP and an offset from the
107 given time. The literal \fBnow\fP can be omitted before an offset. The
108 offset can be followed by one of the suffixes \fBy\fP, \fBmo\fP, \fBw\fP,
109 \fBd\fP, \fBh\fP, or \fBmi\fP, so that it is computed in years (defined as
110 365 24\-hour days, ignoring leap years), months (defined as 30 24\-hour
111 days), weeks, days, hours, or minutes, respectively. Without a suffix,
112 the offset is computed in seconds.
113 .sp
114 To explicitly prevent a date from being set, use \fBnone\fP, \fBnever\fP,
115 or \fBunset\fP\&.
116 .sp
117 All these formats are case\-insensitive.
118 .INDENT 0.0
119 .TP
120 .B \-P date/offset
121 This option sets the date on which a key is to be published to the zone. After
122 that date, the key is included in the zone but is not used
123 to sign it.
124 .INDENT 7.0
125 .TP
126 .B sync date/offset
127 This option sets the date on which CDS and CDNSKEY records that match this key
128 are to be published to the zone.
129 .UNINDENT
130 .UNINDENT
131 .INDENT 0.0
132 .TP
133 .B \-D date/offset
134 This option sets the date on which the key is to be deleted. After that date, the
135 key is no longer included in the zone. (However, it may remain in the key
136 repository.)
137 .INDENT 7.0
138 .TP
139 .B sync date/offset
140 This option sets the date on which the CDS and CDNSKEY records that match this
141 key are to be deleted.
142 .UNINDENT
143 .UNINDENT
144 .SH FILES
145 .sp
146 A keyfile can be designed by the key identification \fBKnnnn.+aaa+iiiii\fP
147 or the full file name \fBKnnnn.+aaa+iiiii.key\fP, as generated by
148 \fBdnssec\-keygen\fP \%<#\:std-iscman-dnssec-keygen>\&.
149 .SH SEE ALSO
150 .sp
151 \fBdnssec\-keygen(8)\fP \%<#\:std-iscman-dnssec-keygen>, \fBdnssec\-signzone(8)\fP \%<#\:std-iscman-dnssec-signzone>, BIND 9 Administrator Reference Manual,
152 \fBRFC 5011\fP \%<https://\:datatracker\:.ietf\:.org/\:doc/\:html/\:rfc5011\:.html>\&.
153 .SH Author
154 Internet Systems Consortium
155 .SH Copyright
156 2026, Internet Systems Consortium
157 .\" End of generated man page.