For HSM Keep-Alive to work, you must have a key named exactly 'testKey'. Sometimes customers do not read the documentation and they call the key 'testkey' or testKey0001.
This ticket suggests the following improvements:
1. Perform a test signature with any key with an alias matching alias.toLowerCase().contains("testkey"). Since the name of the key is not case-sensitive, the user is less likely to make a mistake when naming the test key. This also makes it consistent with how the "Create CA"-page performs auto-detection of keys.
2. Warn with Log4j when no test key is found. Current log message is written as DEBUG.