Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNS Claims Unsigned Assembly is Signed #53

Closed
bkonia opened this issue Oct 30, 2019 · 13 comments
Closed

SNS Claims Unsigned Assembly is Signed #53

bkonia opened this issue Oct 30, 2019 · 13 comments
Assignees
Labels

Comments

@bkonia
Copy link

bkonia commented Oct 30, 2019

I used the Nirsoft Strong Name Remover utility to remove a signature from a signed assembly. After running the remove operation, I confirmed it was removed using snremove -d. However, when I load that assembly into SNS, it still shows that it's signed and refuses to sign it again.

Can you explain why this is happening? Also, it would be nice if SNS included the ability to remove a signature, so we don't need to use a separate utility for that.

@brutaldev
Copy link
Owner

I have some upgrades planned for SNS (probably over the holidays) so I'll take the removal option into consideration. Not sure why it still thinks it's signed, the remover must still be leaving a marker behind, only an assembly diff would explain if it actually removing it correctly.

Do you have an assembly example you used to reproduce this problem, or do you believe it happens to all assemblies you remove the strong-name from?

@bkonia
Copy link
Author

bkonia commented Oct 30, 2019

It seems to happen with all assemblies. I just tested it with the SNS assembly (Brutal.Dev.StrongNameSigner.dll) and it did the same thing.

@gep13
Copy link

gep13 commented Nov 20, 2019

@bkonia did you happen to find a solution/workaround for this? I have the same requirement, and I have found the exact same thing happens when I attempt what you try above.

@jzabroski
Copy link

@gep13
Copy link

gep13 commented Nov 20, 2019

@jzabroski how would I verify if that is the case or not?

@jzabroski
Copy link

jzabroski commented Nov 20, 2019 via email

@bkonia
Copy link
Author

bkonia commented Nov 20, 2019

@bkonia did you happen to find a solution/workaround for this? I have the same requirement, and I have found the exact same thing happens when I attempt what you try above.

No, I'm just waiting for the upgrade from @brutaldev

@brutaldev brutaldev self-assigned this Nov 21, 2019
@brutaldev brutaldev added the bug label Nov 21, 2019
@brutaldev
Copy link
Owner

I'll look at this today and see if I can get it fixed up. Thanks for all the info, will be useful to track down why this happens.

@gep13
Copy link

gep13 commented Nov 21, 2019

@brutaldev let me know if you need a volunteer to test anything out. Happy to help where I can.

@brutaldev
Copy link
Owner

brutaldev commented Nov 22, 2019

Sorry guys, I'll take a look at this soon, yesterday and today was consumed with project work :(

@gep13
Copy link

gep13 commented Nov 22, 2019

@brutaldev totally understand, I know how things can go sometimes. I genuinely wouldn't have any idea on where to start with looking into this, so not in a position to help out from a code point of view, but please let me know if there is anything I can do to help within testing/verification, etc.

@brutaldev
Copy link
Owner

Fixed up in version 2.6.0. The remover only sets the bit to highlight that the assembly is not signed (but keeps the public key - thanks @jzabroski). Delay-signed assemblies will be seen as NOT being signed, the UI will indicate the signing type as well and there is a new property to determine this if you use the API.

Will add full-fledged removing at a later stage which is easy enough, not sure if this tool is the right thing to do that...

@gep13
Copy link

gep13 commented Nov 25, 2019

@brutaldev thank you so much for doing this! I have just taken this for an initial spin, and it seems to work! Going to give this a larger test in the actual place that I need to make use of it to see if everything there works, but seems like it is going to! Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants