Skip to content
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

Cant produce ckc for test streams #13

Closed
abesmon opened this issue Jul 11, 2018 · 3 comments
Closed

Cant produce ckc for test streams #13

abesmon opened this issue Jul 11, 2018 · 3 comments
Labels

Comments

@abesmon
Copy link

abesmon commented Jul 11, 2018

I'm using your server to test iOS FairPlay application

I dont know is it ok, to ask here, but what am i doing wrong?

  1. Ask content server for test content (provided by apple)
  2. Creating SPC request for encrypted content using apple provided "dev_certificate.der" and content id "twelve"
  3. Sending spc request to KSM server (this one)
  4. Got nothing, also server says "Check the integrity of the SPC failed"

In KSM server code i'm using same dev_certificate and private key, provided by apple with test data.

Am i doing something wrong, or everything is fine and it would not work with AppleDev certs and key?

@easonlin404
Copy link
Owner

@abesmon It means you use wrong certificate to sign SPC request if showing"Check the integrity of the SPC failed message. Can I ask how about you created SPC request? I think this is key point have to figure out.

@abesmon
Copy link
Author

abesmon commented Jul 13, 2018

Thanks for your response! I creating SPC request from iOS application with func streamingContentKeyRequestData(forApp appIdentifier: Data, contentIdentifier: Data, options: [String : Any]? = nil) throws -> Data documentation

for appIdentifier i'm using dev_certificate.der that Apple provide with FairPlay Streaming Server SDK. Seems it's same as your cert in this repo. I noticed, that it has expired in 2013. Maybe this is the key point?)

@truedread
Copy link

The client will reject the developer certificate; it has nothing to do with the expiration date. In fact, the documentation says that the client ignores it entirely. To get the iOS client to generate FPS requests you need to use a valid tailored FPS certificate which you can get by requesting the FPS deployment package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants