new encripted key file

This commit is contained in:
Mustapha Zorgati 2017-12-12 11:11:58 +01:00 committed by Holger Hagen
parent 4700278dea
commit 4371f5d3b1
2 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -38,12 +38,12 @@ function helpAndExit {
# decripting gpg keys and importing them (needed to sign artifacts) # decripting gpg keys and importing them (needed to sign artifacts)
# Global: # Global:
# $encrypted_fbbd56f3fa0c_key: decription key # $encrypted_1d44dcf98611_key: decription key
# $encrypted_fbbd56f3fa0c_iv: initialisation vector # $encrypted_1d44dcf98611_iv: initialisation vector
# Arguments: # Arguments:
# $1: basedir # $1: basedir
function decodeAndImportKeys { function decodeAndImportKeys {
$debug openssl aes-256-cbc -K "$encrypted_fbbd56f3fa0c_key" -iv "$encrypted_fbbd56f3fa0c_iv" -in "$1/codesigning.asc.enc" -out "$1/codesigning.asc" -d $debug openssl aes-256-cbc -K "$encrypted_1d44dcf98611_key" -iv "$encrypted_1d44dcf98611_iv" -in "$1/codesigning.asc.enc" -out "$1/codesigning.asc" -d
$debug gpg --import "$1/codesigning.asc" $debug gpg --import "$1/codesigning.asc"
} }
@ -110,7 +110,7 @@ function main {
helpAndExit 1 helpAndExit 1
fi fi
if [[ -z "$debug" && (-z "$encrypted_fbbd56f3fa0c_key" || -z "$encrypted_fbbd56f3fa0c_iv") ]]; then if [[ -z "$debug" && (-z "$encrypted_1d44dcf98611_key" || -z "$encrypted_1d44dcf98611_iv") ]]; then
echo "you are not travis or travis does not have the correct encryption key and iv" >&2 echo "you are not travis or travis does not have the correct encryption key and iv" >&2
exit 1 exit 1
fi fi