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

DelaySign with a public key. #222

Closed
antero-lukkonen opened this issue Mar 2, 2018 · 1 comment
Closed

DelaySign with a public key. #222

antero-lukkonen opened this issue Mar 2, 2018 · 1 comment

Comments

@antero-lukkonen
Copy link

Background:
It is not uncommon to have a assembly signing remote server that holds the private keys and public keys distributed to the developers to be used for delay signing.
Currently if specifying /delaysign and /keyfile=mypublic.snk is used with ilrepack, it fails with an error:

System.ArgumentException: Unable to obtain public key for StrongNameKeyPair.
at System.Reflection.StrongNameKeyPair.ComputePublicKey()
at System.Reflection.StrongNameKeyPair.get_PublicKey()
at ILRepacking.Steps.SigningStep.Perform()
at ILRepacking.ILRepack.Repack()
at ILRepacking.Application.Main(String[] args)

Acceptance criteria:
Given: i have a key file with only a public key called mypublic.snk
When: i run ilrepack with /delaysign and /keyfile=mypublic.snk
Then: i get a delay signed assembly as a result.

@gluck
Copy link
Owner

gluck commented Mar 5, 2018

Hi, could it be you're hitting the same issue that was mentioned in PR #146 ?
This PR hasn't been followed upon, but feel free to give it a go.

Cheers.

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

No branches or pull requests

2 participants