Run this basic test to confirm it’s working:
hactool --keyset=prod.keys --titleid=0100000000001000 --section0=hoge.bin somefile.nca
(Replace somefile.nca with any valid Switch NCA file.)
If you still see “prod.keys does not exist,” double-check: hactool prodkeys does not exist top
Error: hactool prod.keys does not exist top
Fix:
hactool --keyset=~/switch_keys/prod.keys --exefsdir=extracted_romfs game.nca
Use the --keyset argument to avoid location issues: Run this basic test to confirm it’s working:
hactool --keyset=/full/path/to/prod.keys file.nca
Many automated scripts fail because they assume prod.keys is in ~/.switch/ or the current directory. Modify the script to include the --keyset argument.
mkdir -p ~/.switch
cp /path/to/dumped/prod.keys ~/.switch/prod.keys
C:\hactool\
├── hactool.exe
└── prod.keys
hactool looks for the keys file in one of these locations (in order): (Replace somefile
| Priority | Path |
|----------|------|
| 1 | Command line argument --keyset=path/to/prod.keys |
| 2 | Current working directory: ./prod.keys |
| 3 | ~/.switch/prod.keys (Linux/macOS) |
Recommended:
Put prod.keys in the same folder as hactool.exe (Windows) or your home .switch folder (Linux/macOS).