We use TeamCity to build our product and we have just recently tried to enable the digital signature for our application. The certificate in the "store" is one that we created and appears to work just fine when we build our project through the UI.
When we build our product using TeamCity and the AdvancedInstaller plugin, we get an error that the digital certificate has expired. This seems to be in error because
1) It builds fine in the UI
2) We just used AI to create the certificate and its expiration is August 1st 2023.
Error message:
[19:12:40] : [Step 24/25] Starting: "C:\Program Files (x86)\Caphyon\Advanced Installer 19.6\bin\x86\AdvancedInstaller.com" /execute "C:\AdvancedInstallerProject\Full.aip" C:\TeamCity\buildAgent\temp\globalTmp\aic6499808243726108508.tmp
[19:12:40] : [Step 24/25] in directory: C:\TeamCity\buildAgent\work\96d08da23e9ead6f
[19:12:40] : [Step 24/25] SetOutputLocation -buildname "DefaultBuild" -path "C:\TeamCity\buildAgent\work\96d08da23e9ead6f\Installers"
[19:12:40] : [Step 24/25] SetPackageName Software_1.6.162.4369.exe
[19:12:40] : [Step 24/25] Build -buildslist "DefaultBuild"
[19:12:40] : [Step 24/25]
[19:12:41] : [Step 24/25] Checking builds status
[19:12:41] : [Step 24/25] Build required.
[19:12:41] : [Step 24/25]
[19:12:41] : [Step 24/25] [ DefaultBuild ]
[19:12:41] : [Step 24/25] Building package: C:\TeamCity\buildAgent\work\96d08da23e9ead6f\Installers\Software_1.6.162.4369.exe
[19:12:41] : [Step 24/25] Prepare build
[19:12:42] : [Step 24/25] Detecting MSI incompatible resources
[19:12:42] : [Step 24/25] ERROR: Digital signature. Digital certificate selected for signing has expired! Please replace it with a valid SHA256 certificate.
[19:12:42] : [Step 24/25] WARNING: Digital signature. Digital certificate selected for signing is of SHA1 type. This might work but is not officially supported by Windows, a SHA256 certificate is recommended.
[19:12:42] : [Step 24/25] Build finished because an error was encountered.
Version 19.6 (BF52C98E)