sogun3
New Member
1 hour agoUsing Quartus with softHSM
Hi, I am trying to use quartus to create a signed AES key that is created with softHSM:
This command runs fine:
$quartus_encrypt --family=agilex7 --operation=MAKE_AES_KEY -a test_aes_key.txt --module=softHSM --module_args='--token_label=MySoftHSM --user_pin=ignored --hsm_lib=/tmp/libSoftHSM' aes_key.qek --keyname=TestAESKeyBut when I follow the user guide to generate the efuse wrapped aes key, i got this error:
$quartus_pfg --ccert -o ccert_type=EFUSE_WRAPPED_AES_KEY -o qek_file=aes_key.qek unsigned_efuse_aes_root0.ccert -o module=softHSM -o module_args="--token_label=MySoftHSM --user_pin=ignored --hsm_lib=/tmp/libSoftHSM"
...
Error (21999): Found unsupported option string: moduleIf I remove the module option, then i'd get this error code:
Error (20351): Fail to execute function get_qek_root_key in file pgm_python_common_function
Error (20353): Module: stratix10_encrypt.py, Function: check_qek, Line: 548
Error (20353): QEK Encrypted with HSM provided but module arguments are not specified
Error (21589): Cannot retrieve encryption key from aes_key.qek. Make sure the encryption key file (*.qek) is valid and you enter the correct passphrase.
Error (20398): Failed to create unsigned compact certificate file unsigned_efuse_aes_root0.ccert.
Error: Quartus Prime Programming File Generator was unsuccessful. 5 errors, 0 warnings
Any guidance on what to try next?