-
Notifications
You must be signed in to change notification settings - Fork 18
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
Clarify usage of ID field in CRL #43
Comments
It is just a consistent hash of the file - it doesn't imply anything about how the vendor stores the bytes |
Is it important then for the server to know what hashing algorithm was used here? Without knowing what algorithm was used, the only thing that the server could do with this |
What value does this have for the client? Why would a client provide this hash if the server does not need to care about it. It seems redundant to have it and we can just remove it to simplify the message. |
Yes, this field is definitely controversial ;-) The idea behind adding it was to avoid calling the openSSH's re-hashing on the switch every time the CRL is rotated and this is the only reason for it to be present. I am open to removing it and letting the implementation 'do its thing'. |
Either way the server will have to, or should, perform it's own hasing on it to ensure it's valid. gRPC-go implementation of CRL used the x509 hash so irrespective of what the client gives we will have to generate that ourselves to ensure gRPC core can pick it up and if the hash provided is not what gRPC core is expecting we will ignore it. Removing this field would get my vote |
Certificate Revocation Lists has the following definition.
It is not clear what the purpose of the ID is here. The comment indicates it is a file hash, is it referring to sha256sum, x509 hash etc.
What is the expected usage of this ID. Is this supposed to be the name of the CRL in the filesystem? If so, I feel like it might be better to leave this as an implementation detail up to the server. Or if this really is wanted, then should we have a similar field in
Certificate
, which we currently don't have?Or perhaps the hash is used for some form of validation where we, the server, ensure the OpenSSL hash is the same as the hash provided in the spec, this also seems suboptimal as hashing algorithms could be subject to change.
It might be reasonable to remove this field altogether and let the server decide how it wants to name the CRL on the box.
The text was updated successfully, but these errors were encountered: