WillyXJ / facileManager

A modular suite of web apps built with the sysadmin in mind.
www.facilemanager.com
GNU General Public License v2.0
87 stars 37 forks source link

[BUG] fmDNS DNSSEC "The selected key size is invalid." #527

Closed JRM51 closed 3 years ago

JRM51 commented 3 years ago

fM Version : 4.0.3 fmDNS : 4.1.0


[BUG] the creation of DNSSEC keys does not work. In the management of dnssec keys. Config \ Keys -> DNSSEC -> Add New I chose the zone concerned, leave the other fields empty for the automatic generation of the keys then I save. At this time, I am waiting for the KSK and ZSK keys to be created. But I have a message "The selected key size is invalid.". I tested with "Configure Additional Options" different "Key Size" for the same result.

After some research in the code, I commented out, for testing, line 533 in "class_keys.php" // if (!in_array($post['key_size'], $__FM_CONFIG['keys']['avail_sizes'])) return __('The selected key size is invalid.'); The creation of keys is going well.

I think the error is the $post['key_size'] variable which I don't understand where it came from. So I replaced it with $data['key_size']. if (!in_array($data['key_size'], $__FM_CONFIG['keys']['avail_sizes'])) return __('The selected key size is invalid.'); After test, the keys are created well

Do you confirm that this is the bug fix?

have a good day

WillyXJ commented 3 years ago

Are you able to make a pull request?

JRM51 commented 3 years ago

Hello, no I don't know how to do it. Have a good day

trinv commented 3 years ago

Are you able to make a pull request?

Hi, i have the same problem. I can not gen DNSSEC Key.

igorek24 commented 3 years ago

I can confirm that there is an issue with adding new keys.

WillyXJ commented 3 years ago

This is now fixed in fmDNS 5.0.0 and later.