head 1.8; access; symbols RELENG_9_1_0_RELEASE:1.6.2.1 RELENG_9_1:1.6.2.1.0.2 RELENG_9_1_BP:1.6.2.1 RELENG_8_3_0_RELEASE:1.1.2.3 RELENG_8_3:1.1.2.3.0.2 RELENG_8_3_BP:1.1.2.3 RELENG_9_0_0_RELEASE:1.6 RELENG_9_0:1.6.0.4 RELENG_9_0_BP:1.6 RELENG_9:1.6.0.2 RELENG_9_BP:1.6 RELENG_8_2_0_RELEASE:1.1.2.2 RELENG_8_2:1.1.2.2.0.2 RELENG_8_2_BP:1.1.2.2 RELENG_8_1_0_RELEASE:1.1.2.1 RELENG_8_1:1.1.2.1.0.2 RELENG_8_1_BP:1.1.2.1 RELENG_8_0_0_RELEASE:1.1 RELENG_8_0:1.1.0.4 RELENG_8_0_BP:1.1 RELENG_8:1.1.0.2 RELENG_8_BP:1.1; locks; strict; comment @# @; 1.8 date 2012.12.07.12.43.13; author svnexp; state Exp; branches; next 1.7; 1.7 date 2012.04.05.04.29.35; author dougb; state Exp; branches; next 1.6; 1.6 date 2011.09.03.07.13.45; author dougb; state Exp; branches 1.6.2.1; next 1.5; 1.5 date 2011.07.16.11.12.09; author dougb; state Exp; branches; next 1.4; 1.4 date 2011.02.06.22.46.07; author dougb; state Exp; branches; next 1.3; 1.3 date 2010.10.31.04.45.53; author dougb; state Exp; branches; next 1.2; 1.2 date 2010.03.03.05.45.24; author dougb; state Exp; branches; next 1.1; 1.1 date 2009.05.31.05.42.58; author dougb; state Exp; branches 1.1.2.1; next ; 1.6.2.1 date 2012.04.08.01.43.41; author dougb; state Exp; branches; next 1.6.2.2; 1.6.2.2 date 2013.01.08.10.02.28; author svnexp; state Exp; branches; next ; 1.1.2.1 date 2010.03.29.06.31.58; author dougb; state Exp; branches; next 1.1.2.2; 1.1.2.2 date 2010.11.04.21.48.39; author dougb; state Exp; branches; next 1.1.2.3; 1.1.2.3 date 2011.02.05.19.13.34; author dougb; state Exp; branches; next 1.1.2.4; 1.1.2.4 date 2012.04.05.04.31.17; author dougb; state Exp; branches; next ; desc @@ 1.8 log @## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/243981 ## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated @ text @ dnssec-keyfromlabel

Name

dnssec-keyfromlabel — DNSSEC key generation tool

Synopsis

dnssec-keyfromlabel {-l label} [-3] [-a algorithm] [-A date/offset] [-c class] [-D date/offset] [-E engine] [-f flag] [-G] [-I date/offset] [-k] [-K directory] [-n nametype] [-P date/offset] [-p protocol] [-R date/offset] [-t type] [-v level] [-y] {name}

DESCRIPTION

dnssec-keyfromlabel gets keys with the given label from a crypto hardware and builds key files for DNSSEC (Secure DNS), as defined in RFC 2535 and RFC 4034.

The name of the key is specified on the command line. This must match the name of the zone for which the key is being generated.

OPTIONS

-a algorithm

Selects the cryptographic algorithm. The value of algorithm must be one of RSAMD5, RSASHA1, DSA, NSEC3RSASHA1, NSEC3DSA, RSASHA256, RSASHA512, ECCGOST, ECDSAP256SHA256 or ECDSAP384SHA384. These values are case insensitive.

If no algorithm is specified, then RSASHA1 will be used by default, unless the -3 option is specified, in which case NSEC3RSASHA1 will be used instead. (If -3 is used and an algorithm is specified, that algorithm will be checked for compatibility with NSEC3.)

Note 1: that for DNSSEC, RSASHA1 is a mandatory to implement algorithm, and DSA is recommended.

Note 2: DH automatically sets the -k flag.

-3

Use an NSEC3-capable algorithm to generate a DNSSEC key. If this option is used and no algorithm is explicitly set on the command line, NSEC3RSASHA1 will be used by default.

-E engine

Specifies the name of the crypto hardware (OpenSSL engine). When compiled with PKCS#11 support it defaults to "pkcs11".

-l label

Specifies the label of the key pair in the crypto hardware. The label may be preceded by an optional OpenSSL engine name, separated by a colon, as in "pkcs11:keylabel".

-n nametype

Specifies the owner type of the key. The value of nametype must either be ZONE (for a DNSSEC zone key (KEY/DNSKEY)), HOST or ENTITY (for a key associated with a host (KEY)), USER (for a key associated with a user(KEY)) or OTHER (DNSKEY). These values are case insensitive.

-C

Compatibility mode: generates an old-style key, without any metadata. By default, dnssec-keyfromlabel will include the key's creation date in the metadata stored with the private key, and other dates may be set there as well (publication date, activation date, etc). Keys that include this data may be incompatible with older versions of BIND; the -C option suppresses them.

-c class

Indicates that the DNS record containing the key should have the specified class. If not specified, class IN is used.

-f flag

Set the specified flag in the flag field of the KEY/DNSKEY record. The only recognized flags are KSK (Key Signing Key) and REVOKE.

-G

Generate a key, but do not publish it or sign with it. This option is incompatible with -P and -A.

-h

Prints a short summary of the options and arguments to dnssec-keyfromlabel.

-K directory

Sets the directory in which the key files are to be written.

-k

Generate KEY records rather than DNSKEY records.

-p protocol

Sets the protocol value for the key. The protocol is a number between 0 and 255. The default is 3 (DNSSEC). Other possible values for this argument are listed in RFC 2535 and its successors.

-t type

Indicates the use of the key. type must be one of AUTHCONF, NOAUTHCONF, NOAUTH, or NOCONF. The default is AUTHCONF. AUTH refers to the ability to authenticate data, and CONF the ability to encrypt data.

-v level

Sets the debugging level.

-y

Allows DNSSEC key files to be generated even if the key ID would collide with that of an existing key, in the event of either key being revoked. (This is only safe to use if you are sure you won't be using RFC 5011 trust anchor maintenance with either of the keys involved.)

TIMING OPTIONS

Dates can be expressed in the format YYYYMMDD or YYYYMMDDHHMMSS. If the argument begins with a '+' or '-', it is interpreted as an offset from the present time. For convenience, if such an offset is followed by one of the suffixes 'y', 'mo', 'w', 'd', 'h', or 'mi', then the offset is computed in years (defined as 365 24-hour days, ignoring leap years), months (defined as 30 24-hour days), weeks, days, hours, or minutes, respectively. Without a suffix, the offset is computed in seconds.

-P date/offset

Sets the date on which a key is to be published to the zone. After that date, the key will be included in the zone but will not be used to sign it. If not set, and if the -G option has not been used, the default is "now".

-A date/offset

Sets the date on which the key is to be activated. After that date, the key will be included in the zone and used to sign it. If not set, and if the -G option has not been used, the default is "now".

-R date/offset

Sets the date on which the key is to be revoked. After that date, the key will be flagged as revoked. It will be included in the zone and will be used to sign it.

-I date/offset

Sets the date on which the key is to be retired. After that date, the key will still be included in the zone, but it will not be used to sign it.

-D date/offset

Sets the date on which the key is to be deleted. After that date, the key will no longer be included in the zone. (It may remain in the key repository, however.)

GENERATED KEY FILES

When dnssec-keyfromlabel completes successfully, it prints a string of the form Knnnn.+aaa+iiiii to the standard output. This is an identification string for the key files it has generated.

  • nnnn is the key name.

  • aaa is the numeric representation of the algorithm.

  • iiiii is the key identifier (or footprint).

dnssec-keyfromlabel creates two files, with names based on the printed string. Knnnn.+aaa+iiiii.key contains the public key, and Knnnn.+aaa+iiiii.private contains the private key.

The .key file contains a DNS KEY record that can be inserted into a zone file (directly or with a $INCLUDE statement).

The .private file contains algorithm-specific fields. For obvious security reasons, this file does not have general read permission.

SEE ALSO

dnssec-keygen(8), dnssec-signzone(8), BIND 9 Administrator Reference Manual, RFC 4034.

AUTHOR

Internet Systems Consortium

@ 1.7 log @SVN rev 233914 on 2012-04-05 04:29:35Z by dougb Update to version 9.8.2, the latest from ISC, which contains numerous bug fixes. @ text @d2 1 a2 1 - Copyright (C) 2008-2011 Internet Systems Consortium, Inc. ("ISC") d34 1 a34 1

DESCRIPTION

d47 1 a47 1

OPTIONS

d54 2 a55 1 DSA, NSEC3RSASHA1, NSEC3DSA, RSASHA256, RSASHA512 or ECCGOST. d167 1 a167 1

TIMING OPTIONS

d214 1 a214 1

GENERATED KEY FILES

d253 1 a253 1

SEE ALSO

d261 1 a261 1

AUTHOR

@ 1.6 log @SVN rev 225361 on 2011-09-03 07:13:45Z by dougb Upgrade to BIND version 9.8.1. Release notes at: https://deepthought.isc.org/article/AA-00446/81/ or /usr/src/contrib/bind9/ Approved by: re (kib) @ text @d16 1 a16 1 d34 1 a34 1

DESCRIPTION

d47 1 a47 1

OPTIONS

d166 1 a166 1

TIMING OPTIONS

d213 1 a213 1

GENERATED KEY FILES

d252 1 a252 1

SEE ALSO

d260 1 a260 1

AUTHOR

@ 1.6.2.1 log @SVN rev 234010 on 2012-04-08 01:43:41Z by dougb MFC r233909: Add Bv9ARM.pdf to the list of docs to install. MFV/MFC r233914: Update to version 9.8.2, the latest from ISC, which contains numerous bug fixes. @ text @d16 1 a16 1 d34 1 a34 1

DESCRIPTION

d47 1 a47 1

OPTIONS

d166 1 a166 1

TIMING OPTIONS

d213 1 a213 1

GENERATED KEY FILES

d252 1 a252 1

SEE ALSO

d260 1 a260 1

AUTHOR

@ 1.6.2.2 log @## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/245163 ## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated ## SVN ## ## SVN ## ------------------------------------------------------------------------ ## SVN ## r245163 | erwin | 2013-01-08 09:05:09 +0000 (Tue, 08 Jan 2013) | 21 lines ## SVN ## ## SVN ## MFC r243981,243987: ## SVN ## ## SVN ## Update to 9.8.4-P1. ## SVN ## ## SVN ## New Features ## SVN ## ## SVN ## * Elliptic Curve Digital Signature Algorithm keys and signatures in ## SVN ## DNSSEC are now supported per RFC 6605. [RT #21918] ## SVN ## ## SVN ## Feature Changes ## SVN ## ## SVN ## * Improves OpenSSL error logging [RT #29932] ## SVN ## ## SVN ## * nslookup now returns a nonzero exit code when it is unable to get ## SVN ## an answer. [RT #29492] ## SVN ## ## SVN ## Other critical bug fixes are included. ## SVN ## ## SVN ## Approved by: delphij (mentor) ## SVN ## Sponsored by: DK Hostmaster A/S ## SVN ## ## SVN ## ------------------------------------------------------------------------ ## SVN ## @ text @d2 1 a2 1 - Copyright (C) 2008-2012 Internet Systems Consortium, Inc. ("ISC") d34 1 a34 1

DESCRIPTION

d47 1 a47 1

OPTIONS

d54 1 a54 2 DSA, NSEC3RSASHA1, NSEC3DSA, RSASHA256, RSASHA512, ECCGOST, ECDSAP256SHA256 or ECDSAP384SHA384. d166 1 a166 1

TIMING OPTIONS

d213 1 a213 1

GENERATED KEY FILES

d252 1 a252 1

SEE ALSO

d260 1 a260 1

AUTHOR

@ 1.5 log @SVN rev 224092 on 2011-07-16 11:12:09Z by dougb Upgrade to version 9.8.0-P4 This version has many new features, see /usr/share/doc/bind9/README for details. @ text @d16 1 a16 1 @ 1.4 log @SVN rev 218384 on 2011-02-06 22:46:07Z by dougb Update to BIND 9.6.3, the latest from ISC on the 9.6 branch. All 9.6 users with DNSSEC validation enabled should upgrade to this version, or the latest version in the 9.7 branch, prior to 2011-03-31 in order to avoid validation failures for names in .COM as described here: https://www.isc.org/announcement/bind-9-dnssec-validation-fails-new-ds-record In addition the fixes for this and other bugs, there are also the following: * Various fixes to kerberos support, including GSS-TSIG * Various fixes to avoid leaking memory, and to problems that could prevent a clean shutdown of named @ text @d2 1 a2 1 - Copyright (C) 2008, 2010 Internet Systems Consortium, Inc. ("ISC") d16 1 a16 1 d31 1 a31 1

dnssec-keyfromlabel {-a algorithm} {-l label} [-c class] [-f flag] [-k] [-n nametype] [-p protocol] [-t type] [-v level] {name}

d34 1 a34 1

DESCRIPTION

d40 5 d47 1 a47 1

OPTIONS

d53 2 a54 3 algorithm must be one of RSAMD5, RSASHA1, DSA, NSEC3RSASHA1, NSEC3DSA, RSASHA256, RSASHA512 or DH (Diffie Hellman). d72 12 d86 3 a88 2 Specifies the label of keys in the crypto hardware (PKCS#11 device). d97 11 a107 2 These values are case insensitive. d117 6 a122 1 The only recognized flag is KSK (Key Signing Key) DNSKEY. d127 5 a131 1 dnssec-keygen. d139 1 a139 1 Sets the protocol value for the generated key. The protocol d155 55 d213 1 a213 1

GENERATED KEY FILES

d225 1 a225 2 of the algorithm. d236 1 a236 2 private key. d245 2 a246 2 The .private file contains algorithm specific d252 1 a252 1

SEE ALSO

d260 1 a260 1

AUTHOR

@ 1.3 log @SVN rev 214586 on 2010-10-31 04:45:53Z by dougb Update to 9.6-ESV-R2, the latest from ISC. This version contains bug fixes that are relevant to any caching/resolving name server; as well as DNSSEC-related fixes. @ text @d16 1 a16 1 d34 1 a34 1

DESCRIPTION

d42 1 a42 1

OPTIONS

d123 1 a123 1

GENERATED KEY FILES

d164 1 a164 1

SEE ALSO

d172 1 a172 1

AUTHOR

@ 1.2 log @SVN rev 204619 on 2010-03-03 05:45:24Z by dougb Upgrade to version 9.6.2. This version includes all previously released security patches to the 9.6.1 version, as well as many other bug fixes. This version also incorporates a different fix for the problem we had patched in contrib/bind9/bin/dig/dighost.c, so that file is now back to being the same as the vendor version. Due to the fact that the DNSSEC algorithm that will be used to sign the root zone is only included in this version and in 9.7.x those who wish to do validation MUST upgrade to one of these prior to July 2010. @ text @d16 1 a16 1 d34 1 a34 1

DESCRIPTION

d42 1 a42 1

OPTIONS

d123 1 a123 1

GENERATED KEY FILES

d164 1 a164 1

SEE ALSO

d172 1 a172 1

AUTHOR

@ 1.1 log @SVN rev 193149 on 2009-05-31 05:42:58Z by dougb Update BIND to version 9.6.1rc1. This version has better performance and lots of new features compared to 9.4.x, including: Full NSEC3 support Automatic zone re-signing New update-policy methods tcp-self and 6to4-self DHCID support. More detailed statistics counters including those supported in BIND 8. Faster ACL processing. Efficient LRU cache-cleaning mechanism. NSID support. @ text @d2 1 a2 1 - Copyright (C) 2008 Internet Systems Consortium, Inc. ("ISC") d4 1 a4 1 - Permission to use, copy, modify, and distribute this software for any d16 1 a16 1 d34 1 a34 1

DESCRIPTION

d42 1 a42 1

OPTIONS

d48 3 a50 2 algorithm must be one of RSAMD5 (RSA) or RSASHA1, DSA, NSEC3RSASHA1, NSEC3DSA or DH (Diffie Hellman). d54 7 d123 1 a123 1

GENERATED KEY FILES

d164 1 a164 1

SEE ALSO

d168 1 a168 3 RFC 2539, RFC 2845, RFC 4033. d172 1 a172 1

AUTHOR

@ 1.1.2.1 log @SVN rev 205820 on 2010-03-29 06:31:58Z by dougb Update to 9.6.2-P1, the latest patchfix release which deals with the problems related to the handling of broken DNSSEC trust chains. This fix is only relevant for those who have DNSSEC validation enabled and configure trust anchors from third parties, either manually, or through a system like DLV. @ text @d2 1 a2 1 - Copyright (C) 2008, 2010 Internet Systems Consortium, Inc. ("ISC") d4 1 a4 1 - Permission to use, copy, modify, and/or distribute this software for any d16 1 a16 1 d34 1 a34 1

DESCRIPTION

d42 1 a42 1

OPTIONS

d48 2 a49 3 algorithm must be one of RSAMD5, RSASHA1, DSA, NSEC3RSASHA1, NSEC3DSA, RSASHA256, RSASHA512 or DH (Diffie Hellman). a52 7 If no algorithm is specified, then RSASHA1 will be used by default, unless the -3 option is specified, in which case NSEC3RSASHA1 will be used instead. (If -3 is used and an algorithm is specified, that algorithm will be checked for compatibility with NSEC3.)

d115 1 a115 1

GENERATED KEY FILES

d156 1 a156 1

SEE ALSO

d160 3 a162 1 RFC 4034. d166 1 a166 1

AUTHOR

@ 1.1.2.2 log @SVN rev 214811 on 2010-11-04 21:48:39Z by dougb Update to 9.6-ESV-R2, the latest from ISC. This version contains bug fixes that are relevant to any caching/resolving name server; as well as DNSSEC-related fixes. @ text @d16 1 a16 1 d34 1 a34 1

DESCRIPTION

d42 1 a42 1

OPTIONS

d123 1 a123 1

GENERATED KEY FILES

d164 1 a164 1

SEE ALSO

d172 1 a172 1

AUTHOR

@ 1.1.2.3 log @SVN rev 218334 on 2011-02-05 19:13:34Z by dougb Update to BIND 9.6.3, the latest from ISC on the 9.6 branch. All 9.6 users with DNSSEC validation enabled should upgrade to this version, or the latest version in the 9.7 branch, prior to 2011-03-31 in order to avoid validation failures for names in .COM as described here: https://www.isc.org/announcement/bind-9-dnssec-validation-fails-new-ds-record In addition the fixes for this and other bugs, there are also the following: * Various fixes to kerberos support, including GSS-TSIG * Various fixes to avoid leaking memory, and to problems that could prevent a clean shutdown of named @ text @d16 1 a16 1 d34 1 a34 1

DESCRIPTION

d42 1 a42 1

OPTIONS

d123 1 a123 1

GENERATED KEY FILES

d164 1 a164 1

SEE ALSO

d172 1 a172 1

AUTHOR

@ 1.1.2.4 log @SVN rev 233915 on 2012-04-05 04:31:17Z by dougb Update to version 9.6-ESV-R6, the latest from ISC, which contains numerous bug fixes. @ text @d2 1 a2 1 - Copyright (C) 2008, 2010, 2012 Internet Systems Consortium, Inc. ("ISC") d16 1 a16 1 d34 1 a34 1

DESCRIPTION

d42 1 a42 1

OPTIONS

d123 1 a123 1

GENERATED KEY FILES

d164 1 a164 1

SEE ALSO

d172 1 a172 1

AUTHOR

@