serverless-secrets-plugin icon indicating copy to clipboard operation
serverless-secrets-plugin copied to clipboard

Encrypt and Decrypt are not compatible between OSX and Windows OS.

Open voiceactivity opened this issue 5 years ago • 3 comments

How to reproduce:

  1. Execute on OSX: sls encrypt -s stag --password 'xxx'

  2. Commit to git secrets.prod.yml.encrypted.

  3. Make git pull of the same file on Win10.

  4. Execute on Win10: sls decrypt -s stag --password 'xxx'

  5. Error: Error -------------------------------------------------- error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable. Get Support -------------------------------------------- Docs: docs.serverless.com Bugs: github.com/serverless/serverless/issues Issues: forum.serverless.com Your Environment Information ----------------------------- OS: win32 Node Version: 8.9.1 Serverless Version: 1.28.0

  6. File unreadable. Note: the passwords used are correct. I double checked and the encrypt|decrypt still work on my Mac (where I initially encrypted files).

voiceactivity avatar Jul 12 '18 06:07 voiceactivity