I have .pfx certificate bought from https://www.globalsign.co.uk/. I've signed the ClickOnce manifest of my VSTO (Excel Add-In project type in Visual Studio) project with it and everything worked. After a month of use, I've tried to rebuilding my project (that used to work) and now it gives me an error:
An error occurred while signing: Unknown error "-2147012894"
The certificate is perfectly valid and not expired and signing manually like following works perfectly: SignTool sign /f mycert.pfx /p password somefile.exe
I've tried removing all of the certificates in certmgr.msc under the Personal/Certificates path, but it didn't help.
Anyone had this kind of error before? Any suggestions?