-
Notifications
You must be signed in to change notification settings - Fork 124
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
Support for server returning multiple SignedDrmCertificates #41
Comments
This is an interesting case. I've not seen this anywhere else before. What service is doing this? Both certificates are the common service certificate for Google's production license server, and both service certificates are identical, including their signatures. The cert.txt you provided, the response from the server, is a Why you get a partial decode error is when it parses that cert.txt data and then re-serializes it with our schema, the data is different because it effectively discarded one of the two message types and message messages. I could try and add a manual check if the original input data was in fact a message like this one where it had more than two values for type and message, and then just continue anyway keeping what was likely the first value (which in your case would be fine). |
Thank, for the reply. The service is the VOD service of the french TV channel TF1. |
So after looking into it more, this response doesn't even seem to be a message containing repeated SignedMessage items, but rather just two consecutive responses of SignedMessage messages concatenated together. For example, Are you sure you aren't somehow trying to set a service certificate twice at the same time? I.e. Dealing with this even by making a protobuf message is more problematic than I first thought because since they have it as effectively two separate SignedMessage's but concatenated together, I can't make a protobuf Message schema for it and have it serialize exactly alike. It would parse correctly, but not serialize to the exact same result as they sent it. |
This is what I get when I dump the whole network trace (using Chrome "Save all as HAR with content" option). "content": {
"size": 1432,
"mimeType": "application/octet-stream",
"text": "CAUSxwUKwQIIAxIQFwW5F8wSBIaLBjM6L3cqjBiCtIKSBSKOAjCCAQoCggEBAJntWzsyfateJO/DtiqVtZhSCtW8yzdQPgZFuB…",
"encoding": "base64"
}, |
I pushed a fix as you can see above. I'd love it if you can follow development instructions to run the latest code and test with that if you could. I took your cert.txt and tested with that by hardcoding it in the |
Thank you, I will give it a try and let you know. |
I works well. |
Glad it works 👍 |
Is your feature request related to a problem? Please describe.
I'm trying to fetch key from a server but it fails with "partial decode" error when validating the certificate.
It appears that the server is returning 2 certificates. I managed to decode the message using the following declaration.
Unfortunately, I don't have enough knowledge about the widevine underlying to tell how this kind of answer should be handled.
Here is a base64 license server response: cert.txt
The text was updated successfully, but these errors were encountered: