You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The current behavior do not recreate private keys, but the script recreate certificate. I propose to not recreate the certificate (like private key) when certificate already exist.
If you are ok with the patch, i will open the same patch on unbound.
The intent is to make nsd-control-setup idempotent, which allows to run it again and again without to have to reload or restart NSD. You right with this patch we can't resign and it's an important feature; I add a flag like -f or -r to resign certificate. Are you ok with this solution?
Sure that would work fine. Why do you need it to be idempotent, then? What needs to run this script again and again? Trying to understand what you need from it, the solution looks fine (or an option for that use case, if that is somehow different from create certificates or resign certificates).
I have idempotent script to bootstrap my servers, and this script exec nsd-control-setup, my script is use to create new server from scratch and to update existing server configuration. And to be honest I was surprise when the nsd-control-setup resign generated certificates each time it was exec.
The reason will be displayed to describe this comment to others. Learn more.
Looks good. The -r option is good to have and otherwise it'll create the certificates until they all exist, which is what a lot of startup, or, install, scripts need.
- Merge PR #91 by gearnode: nsd-control-setup recreate certificates.
The '-r' option recreates certificates. Without it it creates them
if they do not exist, and does not modify them otherwise.
- Merge PR NLnetLabs#91 by gearnode: nsd-control-setup recreate certificates.
The '-r' option recreates certificates. Without it it creates them
if they do not exist, and does not modify them otherwise.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The current behavior do not recreate private keys, but the script recreate certificate. I propose to not recreate the certificate (like private key) when certificate already exist.
If you are ok with the patch, i will open the same patch on unbound.