Skip to content

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

@voiceactivity

Description

@voiceactivity

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions