or Create a profile
03 Apr, 2021 05:19 PM
I have a file I want to decrypt at build time. It used to work fine until today.
Since I had the warning about re-encrypting my file to benefit from the new "salt" option I decided to do so.
I followed the steps in https://www.appveyor.com/docs/how-to/secure-files/.
Then I encrypted my secret and the salt output and added them as "secure" env variables in my appveyor.yml
But now I get >>
appveyor-tools\secure-file -decrypt "%APPVEYOR_BUILD_FOLDER%\xxxxxxx\yyyyyyy.enc" -secret %DECODE_KEY% -salt %DECODE_SALT%
Encountered a cryptographic error while processing the file.
Command exited with code 2
If I add an echo of the environment variables %DECODE_KEY% and %DECODE_SALT% before the secure-file command I can see they both exist and match my original secret and salt. It's not a PR build by the way.
If I RDP into the VM, I see there is a decrypted file that contains garbage.
If I issue the secure-file command manually, it works fine.
So I'm stuck here and don't know what else to check.
Thanks for your help.
on 03 Apr, 2021 08:23 PM
Are you downloading the same secure-file executable that was using to encode the file? Have you re-encoded file with key/salt? Try doing the procedure again?
Formatting help /
(switch to plain text)
(switch to Markdown)
You can attach files up to 10MB
If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.
A conversation has been started with the AppVeyor staff to resolve this discussion.
This discussion is private.
Only you and AppVeyor support staff can see and reply to it.
This discussion is public. Everyone can see and reply to it.
You can use Command ⌘ instead of Control ^ on Mac
Powered by Tender™.