5 # Decrypt our private files; changes to this file should be inspected
6 # closely to ensure they do not create information leaks
8 eval key="\${encrypted_${1}_key}"
9 eval iv="\${encrypted_${1}_iv}"
13 echo "No aes key present - skipping decryption"
17 for i in .travis/*.enc
19 u=$(echo $i | sed -e 's/.enc$//')
20 openssl aes-256-cbc -K "$key" -iv "$iv" -in $i -out $u -d
23 if [ -f .travis/travis_rsa ]
25 echo "ssh key present - loading agent"
26 eval "$(ssh-agent -s)"
28 # add key, then remove to prevent leaks
29 chmod 600 .travis/travis_rsa
30 ssh-add .travis/travis_rsa
31 rm -f .travis/travis_rsa
32 touch /tmp/ssh-key-loaded
34 echo "No ssh key present - skipping agent start"