| 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-KSR" "1" "@RELEASE_DATE@" "@PACKAGE_VERSION@" "BIND 9" |
| 32 |
.SH NAME |
| 33 |
dnssec-ksr \- create signed key response (SKR) files for offline KSK setups |
| 34 |
.SH SYNOPSIS |
| 35 |
.sp |
| 36 |
\fBdnssec\-ksr\fP [\fB\-E\fP engine] [\fB\-e\fP date/offset] [\fB\-F\fP] [\fB\-f\fP file] [\fB\-h\fP] [\fB\-i\fP date/offset] [\fB\-K\fP directory] [\fB\-k\fP policy] [\fB\-l\fP file] [\fB\-o\fP] [\fB\-V\fP] [\fB\-v\fP level] {command} {zone} |
| 37 |
.SH DESCRIPTION |
| 38 |
.sp |
| 39 |
The \fBdnssec\-ksr\fP can be used to issue several commands that are needed |
| 40 |
to generate presigned RRsets for a zone where the private key file of the Key |
| 41 |
Signing Key (KSK) is typically offline. This requires Zone Signing Keys |
| 42 |
(ZSKs) to be pregenerated, and the DNSKEY, CDNSKEY, and CDS RRsets to be |
| 43 |
already signed in advance. |
| 44 |
.sp |
| 45 |
The latter is done by creating Key Signing Requests (KSRs) that can be imported |
| 46 |
to the environment where the KSK is available. Once there, this program can |
| 47 |
create Signed Key Responses (SKRs) that can be loaded by an authoritative DNS |
| 48 |
server. |
| 49 |
.SH OPTIONS |
| 50 |
.INDENT 0.0 |
| 51 |
.TP |
| 52 |
.B \-E engine |
| 53 |
This option specifies the cryptographic hardware to use, when applicable. |
| 54 |
.sp |
| 55 |
When BIND 9 is built with OpenSSL, this needs to be set to the OpenSSL |
| 56 |
engine identifier that drives the cryptographic accelerator or |
| 57 |
hardware service module (usually \fBpkcs11\fP). |
| 58 |
.UNINDENT |
| 59 |
.INDENT 0.0 |
| 60 |
.TP |
| 61 |
.B \-e date/offset |
| 62 |
This option sets the end date for which keys or SKRs need to be generated |
| 63 |
(depending on the command). |
| 64 |
.UNINDENT |
| 65 |
.INDENT 0.0 |
| 66 |
.TP |
| 67 |
.B \-F |
| 68 |
This options turns on FIPS (US Federal Information Processing Standards) |
| 69 |
mode if the underlying crytographic library supports running in FIPS |
| 70 |
mode. |
| 71 |
.UNINDENT |
| 72 |
.INDENT 0.0 |
| 73 |
.TP |
| 74 |
.B \-f |
| 75 |
This option sets the SKR file to be signed when issuing a \fBsign\fP command. |
| 76 |
.UNINDENT |
| 77 |
.INDENT 0.0 |
| 78 |
.TP |
| 79 |
.B \-h |
| 80 |
This option prints a short summary of the options and arguments to |
| 81 |
\fBdnssec\-ksr\fP\&. |
| 82 |
.UNINDENT |
| 83 |
.INDENT 0.0 |
| 84 |
.TP |
| 85 |
.B \-i date/offset |
| 86 |
This option sets the start date for which keys or SKRs need to be generated |
| 87 |
(depending on the command). |
| 88 |
.UNINDENT |
| 89 |
.INDENT 0.0 |
| 90 |
.TP |
| 91 |
.B \-K directory |
| 92 |
This option sets the directory in which the key files are to be read or |
| 93 |
written (depending on the command). |
| 94 |
.UNINDENT |
| 95 |
.INDENT 0.0 |
| 96 |
.TP |
| 97 |
.B \-k policy |
| 98 |
This option sets the specific \fBdnssec\-policy\fP for which keys need to |
| 99 |
be generated, or signed. |
| 100 |
.UNINDENT |
| 101 |
.INDENT 0.0 |
| 102 |
.TP |
| 103 |
.B \-l file |
| 104 |
This option provides a configuration file that contains a \fBdnssec\-policy\fP |
| 105 |
statement (matching the policy set with \fB\-k\fP). |
| 106 |
.UNINDENT |
| 107 |
.INDENT 0.0 |
| 108 |
.TP |
| 109 |
.B \-o |
| 110 |
Normally when pregenerating keys, ZSKs are created. When this option is |
| 111 |
set, create KSKs instead. |
| 112 |
.UNINDENT |
| 113 |
.INDENT 0.0 |
| 114 |
.TP |
| 115 |
.B \-V |
| 116 |
This option prints version information. |
| 117 |
.UNINDENT |
| 118 |
.INDENT 0.0 |
| 119 |
.TP |
| 120 |
.B \-v level |
| 121 |
This option sets the debugging level. Level 1 is intended to be usefully |
| 122 |
verbose for general users; higher levels are intended for developers. |
| 123 |
.UNINDENT |
| 124 |
.sp |
| 125 |
\fBcommand\fP |
| 126 |
.INDENT 0.0 |
| 127 |
.INDENT 3.5 |
| 128 |
The KSR command to be executed. See below for the available commands. |
| 129 |
.UNINDENT |
| 130 |
.UNINDENT |
| 131 |
.sp |
| 132 |
\fBzone\fP |
| 133 |
.INDENT 0.0 |
| 134 |
.INDENT 3.5 |
| 135 |
The name of the zone for which the KSR command is being executed. |
| 136 |
.UNINDENT |
| 137 |
.UNINDENT |
| 138 |
.SH COMMANDS |
| 139 |
.INDENT 0.0 |
| 140 |
.TP |
| 141 |
.B keygen |
| 142 |
Pregenerate a number of keys, given a DNSSEC policy and an interval. The |
| 143 |
number of generated keys depends on the interval and the key lifetime. |
| 144 |
.UNINDENT |
| 145 |
.INDENT 0.0 |
| 146 |
.TP |
| 147 |
.B request |
| 148 |
Create a Key Signing Request (KSR), given a DNSSEC policy and an interval. |
| 149 |
This will generate a file with a number of key bundles, where each bundle |
| 150 |
contains the currently published ZSKs (according to the timing metadata). |
| 151 |
.UNINDENT |
| 152 |
.INDENT 0.0 |
| 153 |
.TP |
| 154 |
.B sign |
| 155 |
Sign a Key Signing Request (KSR), given a DNSSEC policy and an interval, |
| 156 |
creating a Signed Key Response (SKR). This will add the corresponding DNSKEY, |
| 157 |
CDS, and CDNSKEY records for the KSK that is being used for signing. |
| 158 |
.UNINDENT |
| 159 |
.SH EXIT STATUS |
| 160 |
.sp |
| 161 |
The \fBdnssec\-ksr\fP command exits 0 on success, or non\-zero if an error |
| 162 |
occurred. |
| 163 |
.SH EXAMPLES |
| 164 |
.sp |
| 165 |
When you need to generate ZSKs for the zone \(dqexample.com\(dq for the next year, |
| 166 |
given a \fBdnssec\-policy\fP named \(dqmypolicy\(dq: |
| 167 |
.INDENT 0.0 |
| 168 |
.INDENT 3.5 |
| 169 |
.sp |
| 170 |
.EX |
| 171 |
dnssec\-ksr \-i now \-e +1y \-k mypolicy \-l named.conf keygen example.com |
| 172 |
.EE |
| 173 |
.UNINDENT |
| 174 |
.UNINDENT |
| 175 |
.sp |
| 176 |
Creating a KSR for the same zone and period can be done with: |
| 177 |
.INDENT 0.0 |
| 178 |
.INDENT 3.5 |
| 179 |
.sp |
| 180 |
.EX |
| 181 |
dnssec\-ksr \-i now \-e +1y \-k mypolicy \-l named.conf request example.com > ksr.txt |
| 182 |
.EE |
| 183 |
.UNINDENT |
| 184 |
.UNINDENT |
| 185 |
.sp |
| 186 |
Typically you would now transfer the KSR to the system that has access to |
| 187 |
the KSK. |
| 188 |
.sp |
| 189 |
Signing the KSR created above can be done with: |
| 190 |
.INDENT 0.0 |
| 191 |
.INDENT 3.5 |
| 192 |
.sp |
| 193 |
.EX |
| 194 |
dnssec\-ksr \-i now \-e +1y \-k kskpolicy \-l named.conf \-f ksr.txt sign example.com |
| 195 |
.EE |
| 196 |
.UNINDENT |
| 197 |
.UNINDENT |
| 198 |
.sp |
| 199 |
Make sure that the DNSSEC parameters in \fBkskpolicy\fP match those |
| 200 |
in \fBmypolicy\fP\&. |
| 201 |
.SH SEE ALSO |
| 202 |
.sp |
| 203 |
\fBdnssec\-keygen(8)\fP \%<#\:std-iscman-dnssec-keygen>, |
| 204 |
\fBdnssec\-signzone(8)\fP \%<#\:std-iscman-dnssec-signzone>, |
| 205 |
BIND 9 Administrator Reference Manual. |
| 206 |
.SH Author |
| 207 |
Internet Systems Consortium |
| 208 |
.SH Copyright |
| 209 |
2026, Internet Systems Consortium |
| 210 |
.\" End of generated man page. |