-
Notifications
You must be signed in to change notification settings - Fork 275
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
Define precisely how to marshal SubjectPublicKeyInfo structure in tls.md #358
Conversation
Define precisely how to marshal SubjectPublicKeyInfo structure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Thanks @kpp for extending the docs. This kind of contribution is very much appreciated!
Any additional comments @marten-seemann? If not, I will merge here.
Co-authored-by: Max Inden <[email protected]>
All that we do is marshal the public key: https://github.com/libp2p/go-libp2p-tls/blob/7530faa07acbfc0aa918c072c2cb35d3c8d5d859/crypto.go#L167-L174 |
@marten-seemann Would it be better if I replace that statement with: "The public key is encoded as a |
Yes, I think referencing the RFC makes a lot of sense here. |
Done. Sorry for the delay. |
Friendly ping @marten-seemann. |
This is a clarification how to marshal SubjectPublicKeyInfo according to the go implementation (https://github.com/libp2p/go-libp2p-tls/blob/7530faa07acbfc0aa918c072c2cb35d3c8d5d859/crypto.go#L143 and https://pkg.go.dev/crypto/x509#MarshalPKIXPublicKey).