GENKRF(1)
π GENKRF(1) β the genkrf glow-up π
okay bestie, come closer β this is genkrf, a lil' Perl tool from the DNSSEC-Tools world, and she's here to generate a keyrec file from your KSK and/or ZSK files. yes she's that girl. β¨
πΈ NAME πΈ
genkrf β Generate a keyrec file from Key Signing Key (KSK) and/or Zone Signing Key (ZSK) files. literally her whole job, no cap. π
π¦ SYNOPSIS π¦
genkrf [options] <zone-file> [<signed-zone-file>]
β¨ DESCRIPTION β¨
so here's the tea, bestie π: genkrf generates a keyrec file from KSK and/or ZSK files. and if you need new keys? she'll generate new KSK and ZSK keys too. she's proactive like that. π
the name of the keyrec file she's gonna generate is given by the -krfile option. if you don't specify that option, then zone-name.krf gets used as the name of the keyrec file. and okay, heads up π β if the keyrec file already exists, it will be overwritten with new keyrec definitions. like, gone. new keyrec energy only.
the zone-file argument is required. it specifies the name of the zone file from which the signed zone file was created. the optional signed-zone-file argument specifies the name of the signed zone file. if you don't give it, then it defaults to zone-file.signed. and ngl the signed zone file field is, in effect, a dummy field β because the zone file is not actually signed. it's giving decorative. π
π OPTIONS π
genkrf has a number of options that assist in creation of the keyrec file. these options will be set to the first value found from this search path:
command line options
DNSSEC-Tools configuration file
DNSSEC-Tools defaults
see tooloptions.pm(3) for more details. exceptions to this are given in the option descriptions, iykyk.
the genkrf options are described below. buckle up. π«Ά
π General genkrf Options π
-zonezone-name β this option specifies the name of the zone. if it's not given, then zone-file will be used as the name of the zone.-krfilekeyrec-file β this option specifies the name of the keyrec file to be generated. if it's not given, thenzone-name.krfwill be used.-algorithmalgorithm β this option specifies the algorithm used to generate encryption keys. π-endtimeendtime β this option specifies the time that the signature on the zone expires, measured in seconds. β°-randomrandom-device β source of randomness used to generate the zone's keys. see the man page fordnssec-signzonefor the valid format of this field. π²-verboseβ display additional messages during processing. if this option is given at least once, then a message will be displayed indicating the successful generation of the keyrec file. if it's given twice, then the values of all options will also be displayed. double the flag, double the lore. π-Versionβ displays the version information forgenkrfand the DNSSEC-Tools package.-helpβ display a usage message. we love a helper. π«Ά
π KSK-related Options π
-kskcurKSK-name β this option specifies the Current KSK's key file being used to sign the zone. if this option isn't given, a new KSK will be created. slay, new key.-kskcountKSK-count β this option specifies the number of KSK keys that will be generated. if it isn't given, the default given in the DNSSEC-Tools configuration file will be used.-kskdirKSK-directory β this option specifies the absolute or relative path of the directory where the KSK resides. if it isn't given, it defaults to the current directory".".-ksklengthKSK-length β this option specifies the length of the KSK encryption key. π-ksklifeKSK-lifespan β this option specifies the lifespan of the KSK encryption key. and bestie, listen: this lifespan is not inherent to the key itself. it's only used to determine when the KSK must be rolled over. it's giving calendar reminder, not personality trait. π
π§ ZSK-related Options π§
-zskcurZSK-name β this option specifies the current ZSK being used to sign the zone. if this option isn't given, a new ZSK will be created.-zskpubZSK-name β this option specifies the published ZSK for the zone. if this option isn't given, a new ZSK will be created. (yes, again. she's generous.)-zskcountZSK-count β this option specifies the number of current and published ZSK keys that will be generated. if it isn't given, the default given in the DNSSEC-Tools configuration file will be used.-zskdirZSK-directory β this option specifies the absolute or relative path of the directory where the ZSKs reside. if it isn't given, it defaults to the current directory".".-zsklengthZSK-length β this option specifies the length of the ZSK encryption key. π-zsklifeZSK-lifespan β this option specifies the lifespan of the ZSK encryption key. and same deal as before, fr fr: this lifespan is not inherent to the key itself. it's only used to determine when the ZSK must be rolled over.
π COPYRIGHT π
Copyright 2005-2014 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.
π AUTHOR π
Wayne Morrison, tewok@tislabs.com
π SEE ALSO π
dnssec-keygen(8),dnssec-signzone(8),zonesigner(8)Net::DNS::SEC::Tools::conf.pm(3),Net::DNS::SEC::Tools::defaults.pm(3),Net::DNS::SEC::Tools::keyrec.pm(3)conf(5),keyrec(5)
and that's the whole page, bestie β mwah, go generate those keyrec files πβ¨
this page is from the DNSSEC-Tools collection, written under perl v5.42.0, dated 2025-07-23 β and the man page itself goes by GENKRF(1). periodt. π
π¦ where this page comes from
- fedora 43: dnssec-tools 2.2.3-30.fc43 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms