-
Notifications
You must be signed in to change notification settings - Fork 276
x5c / x5t parameters #95
Comments
There's not field for it in the struct right now, but it should be fairly simple to add. I can take a look at adding this next week maybe. Or if you want to take a shot at it, pull requests are welcome! |
Hey I would be glad if you could take a look because I have a lot of work right now. If you don't find the time I will look at this in the next weeks / month |
I took a quick look but I'm not really sure where to begin. I guess we need to add a type assertion for I guess it would look something like (pseudo): raw, err = fromEcPrivateKey(cert.PrivateKey)
raw.X5c = base64(DER(cert.Certificate)) Am I on the right path here? Additionally, how to tests? :D |
You want |
Would |
Yes -- also |
Although now that I think about it, setting |
Ok so only x5c for now? |
No I think the fields should be added to the struct, just serialize them directly. |
I am confused. Do you mean that the developer using go-jose is responsible for x5t? I think I will stick to x5c for now - I'm not confident with the according RFCs and such. |
Let's continue this in #96 |
resolved by #97 |
Is it possible to use x5c parameters with go-jose? I want to marshall a RSA private key along a x509 certificate (for HTTP over TLS).
Example: https://tools.ietf.org/html/rfc7517#appendix-B
The text was updated successfully, but these errors were encountered: