title: How to generate iOS Application Certificate for Fairplay implementation
body: <p>We are developing a iOS music app. For content protection we are going to use Apples fairplay DRM system. I am following apple's HDLCatalog example for reference. While implementing i noticed there are two methods in <code>AssetLoaderDelegate</code> class that need to be implemented. I will appreciate if any one can help me out how to implemented below two methods. Thanks in advance.</p>
  
  <p>1.) </p>
  
  <pre><code>public func fetchApplicationCertificate() -&gt; Data? {
  
      // MARK: ADAPT: YOU MUST IMPLEMENT THIS METHOD.
      let applicationCertificate: Data? = nil
  
      if applicationCertificate == nil {
          fatalError("No certificate being returned by \(#function)!")
      }        
  
  
      return applicationCertificate
  }
  </code></pre>
  
  <p>2.)    </p>
  
  <pre><code>public func contentKeyFromKeyServerModuleWithSPCData(spcData: Data, assetIDString: String) -&gt; Data? {
  
      // MARK: ADAPT: YOU MUST IMPLEMENT THIS METHOD.
      let ckcData: Data? = nil
  
      if ckcData == nil {
          fatalError("No CKC being returned by \(#function)!")
      }
  
  
      return ckcData
  }
  </code></pre>
  
  <p>I am updating here that we managed to implement fetchApplicationCertificate() method. Now we are facing problems for generating ckc data</p>