Clickonce publish with expired certificate

流过昼夜 提交于 2021-02-10 20:13:06

问题


I have this error

Error 32 An error occurred while signing: Failed to sign bin\Release\app.publish\setup.exe. SignTool Error: The signer's certificate is not valid for signing. SignTool Error: An error occurred while attempting to sign: bin\Release\app.publish\setup.exe MyProject

My certificate expired in 8/23, I've tried to create a new certificate in the signing tab and everything is fine; but when I click publish I get this message:

The application is signed with a different key than the existing application on the server. Do you want to overwrite it?

If I choose 'yes' the users could access the new application version without any certificate issues?


回答1:


According to Microsoft itself, if you are targeting .NET 4 or later "you can just replace your certificate, issue an update, and go to lunch while the rest of us struggle on."

Certificate Expiration in ClickOnce Deployment



来源:https://stackoverflow.com/questions/25854896/clickonce-publish-with-expired-certificate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!