Emmchaccgen help

trying to rebuild firmware but i cannot get pass this step, if someone could help

i dump my keys with lockpick rcm, dump my firmware with tegraexplorer

extract emmchaccgen and put prod.keys file and fw folder containing the firmware file into the same folder as emmchaccgen. run cmd ,

enter command emmchaccgen --keys prod.keys --fw fw

but this is the error i get: not sure what the problem is, this is the keys i dump for the switch and firmware.

Unable to create NCA class. Is your keyset file valid?
Error: Unable to decrypt NCA header. The file is not an NCA file or the header key is incorrect.

any help is appreciated,

thanks

Solved it. Realized the keys I dump with lock pick was corrupted