alter_ego_dev
Posts: 1
Joined: Fri Sep 23, 2022 8:47 am

How to setup File signing with Azure Key Vault certifiacte in Gitlab CI pipeline

Mon Sep 26, 2022 12:47 pm

How to setup File signing using a Azure Key Vault certificate in Gitlab CI pipeline?
It is not clear how to pass a secret. Should I create an environment with specific name?

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: How to setup File signing with Azure Key Vault certifiacte in Gitlab CI pipeline

Tue Sep 27, 2022 7:42 am

Hi,

When moving to Gitlab pipeline you should use our command line support and make use of the "SetAzureKeyVaultSecret" command.

Basically you can create an Advanced Installer file of commands (e.g. ai_cmd.aic) with this content:

Code: Select all

;aic
SetAzureKeyVaultSecret <yourSecretKey>
Rebuild
or with a content like this when the secret key is stored inside an environment variable:

Code: Select all

;aic
SetAzureKeyVaultSecret EnvName -secret_is_env_var_name 
Rebuild
and then inside your Gitlab pipeline make sure you have a build step that runs AdvancedInstaller.com app with the following command line:

Code: Select all

AdvancedInstaller.com /execute yourSetup.aip ai_cmd.aic
Hope this helps.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”