Facing issues with response from Fairplay SDK based service

Currently we are building a service based on Fairplay SDK version 26.0. Currently our solution is using version 4.5.4.

When we run the below request to get version we get proper response

curl http://xx.xx.xx.xx:8080/fps/v Response - V26.0

Our client applications call below two APIs

https://GW_HOST:8080/fairplay_cert https://GW_HOST:8080/fairplay_license Within the cert API call, we are returning the fairplay public certificate. Currently we are trying to use the test certificate provided along with Fairplay SDK (test_fps_certificate_v26.bin)

Then within the fairplay_license API call, we are trying to reach fairplay service based on Fairplay SDK v26 We are seeing some issues with below request(attaching the request json payload)

curl -v -X POST
-H "Content-Type: application/json"
-d @SDKValidation_NewCert.json
http://xx.xx.xx.xx:8080/fps

We are getting below response from SDK

{"fairplay-streaming-response":{"create-ckc":[{"id":1,"status":-42605}]}} When we checked the apache error logs in the file "/etc/httpd/logs/error_log" we see below error

[DEBUG] ❌ Assertion failure: invalidCertificateErr (-42605) [src/extension.swift:249] This is looks to be some error related to certificate.

As mentioned earlier, client application is making a certificate call where we are returning the certificate set up .

These certificates are already configured in the credentials path.

Also note that the test samples provided with the SDK return valid license response.

We had earlier raised a similar ticket mentioned below and we were asked not to use test certs. So we have raise CSR and used new certs for testing.

https://developer.apple.com/forums/thread/836652?page=1

The error means that the SPC in the request was generated using certificate for which SDK either doesn't have corresponding private key or matching provisioning data.

Can you clarify how the SPC in the JSON above was created? Was it generated on a client using new certificate bundle?

In the SDK configuration file did you specify both private keys for RSA-1024 and RSA-2048 that match certificate bundle used by the client?

In the same configuration file did you specify provisioning data that was created on the development portal together with the certificate bundle used by the client.

Facing issues with response from Fairplay SDK based service
 
 
Q