How to Configure the Signing Environment?
This Description shows the steps needed to configure a Signing Environment and start a build with signing enabled.
This description can either be followed with Visual Studio or Windows SDK , the individual steps will vary according to the tool used.
-
Set up the Environment with Visual Studio or Windows SDK
-
Configuring a signing Environment with Visual Studio:
- Copy the file
setSignEnvironment.ps1
to the root dir (from .vscode).-
Optional step: If desired, adapt
setSignEnvironment.ps1
to ensure signtool is added to the path. The script checks if the variables are set and overwrites them when they are not set. -
Add a valid PFX certificate File. (For testing purposes, the Example certificate in the automation folder can be used for signing. For production environments, the certificate must come from a Certification Authority!)
-
Set PFX Filepath . The full path must be used for this!
-
Set PFX Password.
-
- Copy the file
-
Configuring a signing Environment with Windows SDK:
-
Add
signtool.exe
to the PATH variable. -
Set the PFXFILE environment variable for the PFX File.
-
Set the PFXPASS environment variable for the password.
-
-
- Start your build. See How to Start a Build?