spcData payload (fairplay.cer) for FairPlay key server

We're sending the spcData payload to our fairplay key server (version 5.1) with the base64 encoded string of our fairPlay.cer that was downloaded from our developer portal and we're getting a spcVersionErr (-42580) for the spc version. The value that is being received by the key server seems to be 813827283 when it should be either 1 (base_constants.SPCVersion.v1.rawValue) or 2 (base_constant.SPCVersion.v2.rawValue). We're assuming we're encoding the fairplay.cer incorrectly. Any insight from anybody would be appreciated.

Hi,

Can you provide more information about your playback scenario?

  1. Are you attempting to acquire a CKC?
  2. Why are you including the FPS certificate in your request?

Thanks,

ThetaSeg!

813827283 (=0x308204D3) matches a certificate header, not an SPC, which should start with either 0x00000001 or 0x00000002. I believe you are incorrectly passing your FairPlay certificate as the spcData field to the key server. The SPC is a license request generated by the client device. You can find some sample SPCs in the SDK under Development/Key_Server_Module/Test_Inputs inside the sample json files.

spcData payload (fairplay.cer) for FairPlay key server
 
 
Q