title: i try to use Apple Sample code(FairPlay Streaming Server SDK v4.2.0) with Fairplay online playback,but it doesn't work
body: <p>i try to playback fairplay video with  HLSCatalogWithFPS - AVContentKeySession apple sample code.
  and i just modify  2 func "func requestApplicationCertificate() throws -> Data"  and  "func requestContentKeyFromKeySecurityModule(spcData: Data, assetID: String) throws -> Data"  and add video url on the stream.plist</p>
  
  <p>func requestApplicationCertificate() throws -> Data {</p>
  
  <pre><code>    let certificateURL = Bundle.main.url(forResource: "fairplay", withExtension: "cer")
  
      let applicationCertificate: Data? = try? Data(contentsOf: certificateURL!)
  
      return applicationCertificate!
  
  }
  
  
  
  func requestContentKeyFromKeySecurityModule(spcData: Data, assetID: String) throws -&gt; Data {
      // MARK: ADAPT - You must implement this method to request a CKC from your KSM.
  
      var ckcData: Data? = nil
  
      let url = URL(string: "http://drmlab.ott.hinet.net:8064/fpsa/v1.0/?deviceId=NDJhNjQ1MmQtZGFkZC0zNjE3LTllOTUtMmNlNWVlMzYwZmRi")!
  
      var request = URLRequest(url: url)
  
      let postString = "spc=\(spcData.base64EncodedString())&amp;assetId=\(assetID)"
  
      let postData = postString.data(using: .utf8, allowLossyConversion: true)       
  
      request.httpMethod = "POST"
  
      request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
  
      request.setValue(String(postData!.count), forHTTPHeaderField: "Content-Length")
  
      request.httpBody = postData
  
      let session = URLSession.shared
  
      let semaphore = DispatchSemaphore(value: 0)    
  
      let task = session.dataTask(with: request) { (data, response, error) in
  
          guard let data = data, error == nil else {
  
              print("error=\(error)")
  
              return
  
          }      
  
          print("response = \(response)")       
  
          let responseData = String(data: data, encoding: .utf8)
  
          print("responseData = \(responseData)")
  
          print("ckc = \(ckcData = Data(base64Encoded: responseData!))")
  
          semaphore.signal()
  
      }
         task.resume()
  
      _ = semaphore.wait(timeout: DispatchTime.distantFuture)
  
      return ckcData!
  </code></pre>
  
  <p>}</p>
  
  <p>and i get the error message , How can i solve it ??</p>
  
  <p><img src="https://i.stack.imgur.com/ALlXi.png" alt="enter image description here"></p>