Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Can I unsign an assembly and how...

Can I unsign an assembly and how...

Scheduled Pinned Locked Moved .NET (Core and Framework)
question
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jun Du
    wrote on last edited by
    #1

    We can sign asseblies with a strong name or key. Sometimes I need reuse the assembly on a different device so I need to sign it again with a different key. How do we do it? Can I unsign it first with the previous key and sign it with the new key? Thanks!

    Best, Jun

    D L 2 Replies Last reply
    0
    • J Jun Du

      We can sign asseblies with a strong name or key. Sometimes I need reuse the assembly on a different device so I need to sign it again with a different key. How do we do it? Can I unsign it first with the previous key and sign it with the new key? Thanks!

      Best, Jun

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Signing is a one-way operation. Once done, it cannot be unsigned.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      J 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Signing is a one-way operation. Once done, it cannot be unsigned.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak

        J Offline
        J Offline
        Jun Du
        wrote on last edited by
        #3

        Thanks Dave. So if I signed my assembly with key A and want to resign it with key B, does it work at all?

        Best, Jun

        J 1 Reply Last reply
        0
        • J Jun Du

          Thanks Dave. So if I signed my assembly with key A and want to resign it with key B, does it work at all?

          Best, Jun

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #4

          If it your assembly then you can just rebuild it or start with the unsigned version (the one that you used A to sign in the first place.)

          1 Reply Last reply
          0
          • J Jun Du

            We can sign asseblies with a strong name or key. Sometimes I need reuse the assembly on a different device so I need to sign it again with a different key. How do we do it? Can I unsign it first with the previous key and sign it with the new key? Thanks!

            Best, Jun

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Jun Du wrote:

            Sometimes I need reuse the assembly on a different device so I need to sign it again with a different key. How do we do it?

            • Build your solution

            • Zip the entire solution (source-code folder, containing the bins)

            • Burn the zip on a CD, take a black marker and write the productname, the version and the date on it

            • Make a copy of the assembly for customer A

            • Sign the assembly for customer A

            • Make a copy of the same unsigned assemblies and sign the copy for customer B.

            • Enjoy a coffee and a smoke.

            • Bastard Programmer from Hell :suss:

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups