Hi there,
The main difference between PKCS12 and PKCS11 is, as you mentioned, the non-file-based storage.
If you look into the docs using this command: ./bin/elytron-tool.sh credential-store --create -h
then you will also notice another option for properties called External and cryptoAlg with the following descriptions:
external - specifies whether to store data to external storage and encrypted by keyAlias key (defaults to "false")
cryptoAlg - cryptographic algorithm name to be used to encrypt/decrypt entries at external storage "external" has to be set to "true"
I would suppose maybe specifying those options may help
Please let us know if you have any followups.
-- Prarthona