주 콘텐츠로 건너뛰기

 locked
Signing ClickOnce application with a different certificate RRS feed

  • 질문

  • I have a code signing certificate and I'm in the process of having to change from one CA to another. The current cert is used to sign a ClickOnce application (targets .NET framework 4.5.2). I've been advised to create a brand new cert, but I have a concern that a new cert with a new key will causes issues with clients receiving updates to the application.

    Can anyone tell me if this will in fact cause an issue?

    2020년 7월 13일 월요일 오후 1:23

모든 응답

  • Hi RobSchneiderIsAStapler,
    If you changed the certificate before, you must uninstall and reinstall the ClickOnce application. This is because signing the deployment with other certificates changes the public key token, which is part of the deployment identity.
    For automatic updates, this results in the dreaded “Application cannot be updated.” error. For programmatic updates, calling the CheckForUpdate API throws a NullReferenceException.
    Now, you need to consider the following conditions when determining whether the customer must uninstall and reinstall the application: 
    1.update type (manual or automatic)
    2..NET Framework version you want to target。
    3.Application type (Office / WinForms / WPF / Console),
    4.And there may be signs of your astrology.
    More details you can refer to this document.
    Best Regards,
    Daniel Zhang


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2020년 7월 14일 화요일 오전 6:35
  • Hi RobSchneiderIsAStapler ,
    Has your problem been solved? If it is resolved, we suggest that you mark it as the answer. So it can help other people who have the same problem find a solution quickly.
    Best Regards,
    Daniel Zhang


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2020년 7월 22일 수요일 오전 1:57