ERROR: The certificate is not valid because one of the certification authorities in the certification path does not appear to be allowed to issue certificates or this certificate cannot be used as an end-entity certificate
Found this error on right click of exe > Digital Signatures > Details > View Certificate
For this below steps are followed:
makecert.exe -n "CN=CA123,O=Org,OU=Org,C=US" -r -pe -a sha512 -len 4096 -cy authority -sv CA123.pvk CA123.cer
pvk2pfx.exe -pvk CA123.pvk -spc CA123.cer -pfx CA123.pfx -po Test123
Open mmc > File > Add/Remove Snap-in > Double-click on Certificates > selected computer account > Finish > Ok > Expand Trusted Root Certification > Certificates right-click > All-tasks > import
Double click on certificate file and verified trusted certificate msg
inside inno setup
Tools > Configure Sign Tools > Add > signtool > "C:\Program Files (x86)\Windows Kits\10\bin\x64\signtool.exe" sign /f "C:\Users\Downloads\CA123.pfx" /t http://timestamp.comodoca.com/authenticode /p Test123 $f
Added SignTool=signtool SignedUninstaller=yes in script
executed script and exe got generated with certificate not trusted.
How can I get exe signed with trusted certificate
so that i dont receive unknown publisher error on installation
or Windows Defender SmartScreen dialog
Referred POSTS:
Inno Setup - Signing fails with "Sign Tool failed with exit code 0x1"
Inno Setup - Certificate is not trusted
Signing a Windows installer (.exe) for application created using Electron