refactor util.sh:create_key_store