When using a custom attributes file is being used in Client Toolbox, the library and slot reference must be specified.
This means that the attribute file should look something like:
However, when a custom attribute file is used in EJBCA, library and slot reference is picked from the crypto token, and should not be specified in the attibutes file.
This means that the attribute file only would contain:
If you give an attributes file a la Client Toolbox in EJBCA, you a non-sense message like "Slot not initalized" in the GUI and the log will tell something like:
Give a proper error message, to help the user understand what they did wrong.