# How to create licenseUrl and certificateUrl

**URL:** <https://community.bitmovin.com/t/how-to-create-licenseurl-and-certificateurl/2105>\
**Category:** Support\
**Tags:** drm\
**Created:** [July 5, 2023, 1:54am UTC](https://community.bitmovin.com/t/how-to-create-licenseurl-and-certificateurl/2105 "2023-07-05T01:54:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdhou23](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@pdhou23](https://community.bitmovin.com/u/pdhou23)\
**Post date:** [July 5, 2023, 1:54am UTC](https://community.bitmovin.com/t/how-to-create-licenseurl-and-certificateurl/2105/1 "2023-07-05T01:54:12Z")

</div>

I have been sawing your iOS sample code.  
So, I have a some questions.

1. I can’t understand how to created fairplayStreamUrl, licenseUrl and certificateUrl in drm part of ios sample code.  
Can you explain me? or share me reference document url.

2. May I undertand fairplayStreamUrl in drm part of ios sample code as basic hls stream url?

Thanks in advance for your feedback.

---

<div class="post-metadata">

**Author:** ![thomas.huertas](https://sea1.discourse-cdn.com/flex015/user_avatar/community.bitmovin.com/thomas.huertas/32/291_2.png) [@thomas.huertas](https://community.bitmovin.com/u/thomas.huertas)\
**Post date:** [July 5, 2023, 6:25am UTC](https://community.bitmovin.com/t/how-to-create-licenseurl-and-certificateurl/2105/2 "2023-07-05T06:25:14Z")

</div>

hello @pdhou23  
thanks for your question I am happy to help.  
The examples you mention are for our Bitmovin Player on iOS?  
In the example: BasicDRMPlayback , you can find the Fairplay configuration on this line:[bitmovin-player-ios-samples/BasicDRMPlayback/BasicDRMPlayback/ViewController.swift at 8a956e770fef8f2ed5bf47dadb5371321a21082a · bitmovin/bitmovin-player-ios-samples · GitHub](https://github.com/bitmovin/bitmovin-player-ios-samples/blob/8a956e770fef8f2ed5bf47dadb5371321a21082a/BasicDRMPlayback/BasicDRMPlayback/ViewController.swift#L25)

The reference for our SDK can be found here: [FairplayConfig Class Reference](https://cdn.bitmovin.com/player/ios/3/docs/Classes/FairplayConfig.html)

As you mention, the `fairplayStreamUrl` is an HLS manifest url. This manifest is protected with Fairplay by a DRM service, which will provide you with the `licenseUrl` and `certificateUrl` , as well as the specific configuration needed for such DRM provider.

Do you use already a DRM provider for your Fairplay Content Protection?  
We offer configuration examples for several providers. In the following link you will find some of those examples for EZDRM, Vualto and DRMToday: [AppleFairplayDRMConfig | Bitmovin Player API 7.8.21](https://bitmovin-a.akamaihd.net/bitmovin-player/stable/7/docs/interfaces/playerconfigapi.applefairplaydrmconfig.html)

If you let us know the provider you use, we should be able to find a specific solution for your configuration, and help you getting your stream to play.

I hope this information is useful and look forward to hear more details on your current DRM use case.

regards

-Thomas

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/bitmovin/original/1X/1ab86334145095b0af9c5b924fa3ae6d920b6482.png) [@system](https://community.bitmovin.com/u/system)\
**Post date:** [July 5, 2023, 8:01am UTC](https://community.bitmovin.com/t/how-to-create-licenseurl-and-certificateurl/2105/3 "2023-07-05T08:01:47Z")

</div>

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.
