I have already setup DRM for Widevine and Playready. It is working perfectly.
Now I also want to enable FairPlay. But when I am trying to add the App Certificate to FairPlay Configuration in Content Protection blade in Azure Media Services it does not accept my certificate.
It shows - Certificate validation failed!
I have correctly followed all the steps as per mentioned in the doc:
Apple FairPlay license requirements and configuration
https://learn.microsoft.com/en-us/azure/media-services/latest/fairplay-license-overview
Here are the steps I have followed:
1) Generate key pair
openssl genrsa -aes256 -out privatekey.pem 1024
2) Generate CSR
openssl req -new -sha1 -key privatekey.pem -out certreq.csr -subj "/CN=FairPlayStreaming/OU=Org/O=OrgName/C=XX"
3) Get Certificate and ASK from Apple.
4) Convert the .cer file (DER certificate) to a .pem file (x509 certificate).
openssl x509 -inform der -in FairPlay.cer -out FairPlay-out.pem
5) Convert the .pem file (FairPlay-out.pem) to a .pfx file (which will be used in Azure media services). For this we need the private key (which was generated for CSR) and privatekey-pem-pass.txt (text file which contains the password of private key).
openssl pkcs12 -export -out FairPlay-out.pfx -inkey privatekey.pem -in FairPlay-out.pem -passin file:privatekey-pem-pass.txt
After this I try to upload the PFX file in Azure but it shows - Certificate validation failed!
Can anybody please have a look once and help me understand what I am missing here.
Thank you in advance!