def decrypt_keyfile():
 print('Running in Travis during merge, decrypting stored key file.')
 encrypted_key = os.getenv(ENCRYPTED_KEY_ENV)
 encrypted_iv = os.getenv(ENCRYPTED_INIT_VECTOR_ENV)
 out_file = os.getenv(CREDENTIALS)
 subprocess.call(['openssl', 'aes-256-cbc', '-K', encrypted_key, '-iv', encrypted_iv, '-in', ENCRYPTED_KEYFILE, '-out', out_file, '-d'])

def decrypt_keyfile ( ) : print ( 'Running in Travis during merge, decrypting stored key file.' ) encrypted_key = os . getenv ( ENCRYPTED_KEY_ENV ) encrypted_iv = os . getenv ( ENCRYPTED_INIT_VECTOR_ENV ) out_file = os . getenv ( CREDENTIALS ) subprocess . call ( [ 'openssl' , 'aes-256-cbc' , '-K' , encrypted_key , '-iv' , encrypted_iv , '-in' , ENCRYPTED_KEYFILE , '-out' , out_file , '-d' ] )
decrypt a keyfile .