Anyone has got any idea how can I append keys to a keystore file please in java?
You cannot append keys to keystore, one keystore contains only one key.
I suppose you want to append certificate chain - you may do that with "keystore -import" command.