-
-
Notifications
You must be signed in to change notification settings - Fork 113
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
More replace options #197
Comments
Thank you for the suggestion, I see two ways this could be implemented:
|
Actually, I more spoke about the programmatic usage, not the the CLI, but adding it to the CLI could of course also make sense and would probably cause the necessary API to also be added. :-D |
Oh ok, in this case we could add a |
Something like that for the "additional" point at least. But it might be convenient to also have the "replace same certificate" and "replace same subject" options. Maybe just as ready-made implementations of |
Why would you want to replace a signature with the same certificate? Wouldn't that generate the exact same signature? |
Not exactly the same, as the timestamp will be more recent. But the actual case is, we have some things that are already signed with our certificate. All these three things are combined to one end-result and in the end-result all 3rd party signatures should be preserved, but all files must also be signed with our certificate. Replacing signatures from the same subject would be sufficient for this already, but there might be use-cases where you want to keep the signature with the old certificate for the same subject but replace signatures that were done with the same signature already. |
You can currently select to replace all signatures or append to the existing signatures.
It would be nice if replacing would have more options, for example "replace signatures by same certificate" to keep all signatures except ones created with the same certificate, and "replace signatures by same subject" to keep all signatures except one created with a certificate with the same subject.
Maybe additionally it could also make sense to have a way to filter the certiificates to keep or replace by some Certificate->boolean function.
The text was updated successfully, but these errors were encountered: