tomoh1r / ansible-vault

This project aim to R/W an ansible-vault yaml file
GNU General Public License v3.0
54 stars 32 forks source link

using yaml.safe_load in Vault.load absorb line break in RSA private key #15

Closed vuamitom closed 6 years ago

vuamitom commented 6 years ago

To test

# generate rsa256 key
 ssh-keygen -t rsa -b 4096 -f test.key

# encrypt with ansible
ansible-vault encrypt test.key

When decrypt using ansible-vault, output text is the original key with all linebreaks replaced by whitespace

tomoh1r commented 6 years ago

Sorry for confusing, this repository is not for ansible-vault command, and the command is belong to the ansible official [1]. So, please open the issue to ansible official [2].

[1] https://docs.ansible.com/ansible/latest/cli/ansible-vault.html [2] https://github.com/ansible/ansible