continuous integration - Travis-ci decryption of encrypted files -
i encrypted .env file, , have .env.enc
file. how team decrypt this? got response when encrypted file, , stored in .travis.yml file
openssl aes-256-cbc -k $encrypted_cf94abc85bdc_key -iv $encrypted_cf94abc85bdc_iv -in .env.enc -out .env -d
i tried on terminal , get:
iv undefined
i tried decrypting travis-cli:
travis encrypt-file .env.enc .env -d
i this:
key must 64 characters long , valid hex number
i tried key , iv
travis encrypt-file .env.enc .env -d -k $encrypted_cf94abc85bdc_key -iv $encrypted_cf94abc85bdc_iv
i checked if travis env variables exist, , do:
encrypted_cf94abc85bdc_key=[secure] encrypted_cf94abc85bdc_iv=[secure]
Comments
Post a Comment