Bug 236942

Summary: dnssec-keygen refuses to generate keys
Product: [Fedora] Fedora Reporter: Tim W. <weeglos>
Component: bindAssignee: Adam Tkac <atkac>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: ovasik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-02 16:06:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tim W. 2007-04-18 16:20:25 UTC
Description of problem:
The dnssec-keygen key generation utility refuses to generate keys using many of
the supported (according to the man page) algorithms.

Version-Release number of selected component (if applicable):
[root@executor ~]# rpm -qa | grep bind
bind-utils-9.3.4-3.fc6
system-config-bind-4.0.1-2.fc6
bind-libs-9.3.4-3.fc6
bind-9.3.4-3.fc6
ypbind-1.19-6.fc6


How reproducible:
always

Steps to Reproduce:
1.Run the command line as root: 
[root@executor ~]# dnssec-keygen -a RSASHA1 -b 512 -n HOST executor.mylan.lan
2.Observe the error message:  "dnssec-keygen: invalid DNSKEY nametype HOST"
3.Run the command line as root:
[root@executor ~]# dnssec-keygen -a HMAC-MD5 -b 512 -n HOST executor.mylan.lan
4.Observe successful key generation


Actual results:
With RSASHA1, DSA, and presumably more (these were the only two I tested before
I hit success with HMAC-MD5), the command throws an error. 

Expected results:
I expected a key to be generated using the specified algorithm

Additional info:
I found this bug showing up elsewhere:
http://bugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=332988

Comment 1 Adam Tkac 2007-05-02 16:06:22 UTC
Of course that "dnssec-keygen -a RSASHA1 -b 512 -n HOST executor.mylan.lan"
fails because name type isn't allowed to DNSKEY. Please see dnssec-keygen
manpage (especially -n option to allowed keytype/nametype pairs and -k option -
it generated KEY instead DNSKEY). "dnssec-keygen -a RSASHA1 -b 512 -n HOST -k
executor.mylan.lan" works perfectly.

Regards, Adam