The .p12 keystore file is a component of FairPlay that helps ensure the security and integrity of protected content. A .p12 keystore file stores private keys and associated certificates for FairPlay. This password-protected file is used to sign and encrypt content for use with FairPlay.
You must create a .p12 file to add your FairPlay credential to a DRM-enabled JWP property.
<br />
## Requirements
### JWP
<table> <thead> <tr> <th> Item </th> <th> Notes </th> </tr> </thead> <tbody> <tr> <td width="40%"> <strong>DRM entitlement</strong> </td> <td width="60"> Contact your JWP representative for more information.</td> </tr> <tr> <td> <strong>DRM-enabled property</strong> </td> <td> See: <a href="/platform/docs/protection-studio-drm-get-started#enable-a-property" target="_blank">Enable a property</a></td> </tr> </tbody> </table>
<br />
### Apple
You must request a <a href="https://developer.apple.com/streaming/fps/" target="_blank">FairPlay Streaming Deployment package from Apple</a>.
<table> <thead> <tr> <th> Item </th> <th> Notes </th> </tr> </thead> <tbody> <tr> <td width="40%"> <strong>ASK</strong> </td> <td width="60"> App secret key </td> </tr> <tr> <td> <strong>Certificate</strong> </td> <td> A .cer certificate file </td> </tr> <tr> <td> <strong>Password</strong> </td> <td> Private key password generated when requesting package from Apple </td> </tr> <tr> <td> <strong>Private key</strong> </td> <td> A .pem private key file </td> </tr> </tbody> </table>
<br />
## Implementation
Use the following steps to produce a .p12 keystore file (called **fairplay.p12**), an ASK, and a keystore password. These resources are then uploaded to the **Content Protection** section of your DRM-enabled property in your JWP dashboard.
Copy the following script and save it locally as **create-fairplay-p12.sh**.
From the shell prompt, navigate to the folder in which **create-fairplay-p12.sh** has been saved.
Run the following command. Refer to the notes in the script in step 1 to replace all the placeholders. The command will return the .p12 file.
<a href="/platform/docs/protection-studio-drm-get-started#add-fairplay-credentials-to-a-property">Add the .p12 file to the property</a>.
<br />