Read and store credentials to YAML.