Tech Off Thread

4 posts

Authenticode signing application from VS2005

Back to Forum: Tech Off
  • User profile image
    GurliGebis

    I'm having a little problem.

    I have a code signing certificate, that I want to use for signing my generated .exe file.

    When I open the Signing property page for me project, I only have two signing options:

    "Sign the ClickOnce manifest" and "Sign the assembly"

    The last one doesn't have anything to do with anthenticode, but only Strong name signing.

    So, how do I tell Visual Studio to sign the generated assembly with my authenticode certificate/private key?

  • User profile image
    SimonJ

    Use the PostBuild event of the project to call signtool.exe.

    You can also do this on the PostBuild event of a setup kit to sign an MSI file.

    SimonJ

  • User profile image
    GurliGebis

    Ahh, hehe, didn't think of that Smiley

    Thought it was implemented directly into the IDE.

  • User profile image
    blowdart

    GurliGebis wrote:
    

    Ahh, hehe, didn't think of that Smiley

    Thought it was implemented directly into the IDE.



    If you already have a "proper" build script and not just a command line call you should look at the SDC Build Tasks, which should have a signing task.

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.