I exported the .CER file and set up the code-signing to use this file as described in the AI User guide.
And it works just fine.
But only if I build the AI project interactively.
But when my Azure Pipeline, self-hosted build agent goes off, the code-signing step fails. It gives me this error message
But the certificate file is sitting right there, in the folder where AI expects it to be. In fact, if I go over to that agent PC (it's on my desk) and open up the very same AIP project in the same folder that the build agent just failed on, and I build it -- it code signs just fine.[ DefaultBuild ]
Creating MSI database (en)
The digital signing of the C:\Program Files (x86)\Caphyon\Advanced Installer 20.7.1\custact\x86\viewer.exe file failed. Error message: 'SignTool Error: No certificates were found that met all the given criteria.
So why can AI not find the certificate from a build agent?
This is the Azure pipeline step. Pretty simple (I've obscured the license file text
Code: Select all
- task: AdvancedInstaller@2
displayName: 'Build Installer'
inputs:
advinstLicense: '****'
aipPath: '$(mobileFolder)/Installer/MyApp.aip'Edited to add: I tried reinstalling the Azure Build agent (which runs as a Windows Service) to run under one of my own accounts instead of as the service-account it uses by default. It did not fix the issue.