Click here to Skip to main content
Click here to Skip to main content

Tagged as

What is Delay Signing

, 11 Jun 2014
Rate this:
Please Sign up or sign in to vote.
What is delay signing

Delay Signing helps us to prevent our application from our own developers. Because our developer knows everything about our application, they know strong key file, DLL name, function name, etc. so they can easily take the strong key file and can place a fake DLL, that’s where Delay Signing comes into the picture.

Structure of Strong Key

When we create a Strong Key, there are 2 parts to it:

  1. Public Key
  2. Private Key

So we have to share only Public Strong Key with the internal developers and when we want to deploy the application at that time, we have to add the Private Strong Key and do the deployment.

We can understand the whole concept of Delay Signing by a Strong Key creation.

To create a Strong Key, we have to open “Visual Studio Command Prompt”.

  1. Go to the desired location where you want to create Strong Name Key file. (For example, D:\Akash\Study\Projects\Windows Application\Strong Name)
  2. Type- sn -k MyStrongName.snk. This command created a Strong Name Key file in the desired location. This key hold both public as well as private key.
  3. In order to extract Public Strong Name Key from above Strong Name Key file Type-
    sn -p MyStrongName.snk MyStrongNamePublic.snk
  4. Now we can give the MyStrongNamePublic.snk file to our internal developers for development and store the MyStrongName.snk file in a secured location and will use this at the time of deployment. REMEMBER A POINT when we are using delay signing concept, we have to check the check box “Delay sign only” at the time of Public Strong Name Kay file assignment.
  5. At the time of deployment, we have to assign the secured Strong Name Key file to the DLL. To do this, we have to go to the location where the secured Strong Name Key file is stored, Type-
    sn –R ClassLibrary1.dll MyStrongName.snk

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Akash Ashok Jain
Software Developer (Senior)
India India
I am "Akash Jain" working in IT Industry from last 6 years. From the beginning of my career I worked with C# for both windows and web application. In my short career I worked for 2 Major ERP Applications, e-commerce applications, CMS based applications and also few static websites.
 
I am a MCP for web application for ASP.NET 4.0. I have also done PMP training as project management is one of my interest area.
Follow on   Twitter   Google+   LinkedIn

Comments and Discussions

 
QuestionMessage Automatically Removed PinmemberImadoddin12-Jun-14 2:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 12 Jun 2014
Article Copyright 2014 by Akash Ashok Jain
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid