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 to agent"
26 # add key, then remove to prevent leaks
27 chmod 600 .travis/travis_rsa
28 ssh-add .travis/travis_rsa
29 rm -f .travis/travis_rsa
30 touch /tmp/ssh-key-loaded
32 echo "No ssh key present - skipping agent start"