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

Allowed signWithParams with certificateFile/Password #190

Merged
merged 1 commit into from
Feb 28, 2019

Conversation

guydav
Copy link
Contributor

@guydav guydav commented Jul 7, 2017

Changed the logic in parsing the signWithParams to allow for using them alongside the certificate options, rather than instead of them.

This stems from times I was debugging the signing procedure, or wanted to tweak it, but wished to do so without manually building the arguments for the certificate file and password as well.

To make this change non-breaking, I added a conditional testing that the user-provided signWithParams contain neither /f nor /p, and only in the case that neither of those exists and both certificateFile and certificatePassword are provided, both are used. Otherwise the behavior is just as it currently is.

I would love to hear thoughts about this change, and if there reasons I might be missing why it's a bad idea. I'm also unsure about how to test it - is there a test suite somewhere? Should I build or use an existing minimal project and see that it behaves as expected?

Thanks!

Changed the logic in parsing the signWithParams to allow for using them
alongside the certificate options, rather than instead of them.

This stems from times I was debugging the sigining procedure, or
wanted to tweak it, but wished to do so without manually building
the arguments for the certificate file and password as well.

To make this change non-breaking, I added a conditional testing that
the user-provided signWithParams contain neither /f nor /p, and only
in the case that neither of those exists and both certificateFile
and certificatePassword are provided, both are used. Otherwise
the behavior is just like it currently is.
Copy link
Member

@MarshallOfSound MarshallOfSound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been sitting here for a long time, sorry about that 😄

This looks 💯 to me though

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

Successfully merging this pull request may close these issues.

None yet

2 participants