Add the code that actually stores the key-store configuration into structures, also store the reference into the kasp key.