Azure Media services: storage encrypted rest api didn't work -


i using azure media services rest api create asset should storage encrypted.

the below steps successful:

1: created asset "options": "1"(storage encryption). 2: created content key contentkeytype":"1""protectionkeytype":"0". 3: associated content key asset created. 4: created asset file. 5: created access policy. 6: created sas url(starttime 5 minutes before current time). 7: uploaded file sas url correctly specifying file name(i did chunk upload blob storage). 8: deleted locator & acesspolicy.

problem:

  1. i not able encode asset.
  2. from blob storage, able download file , play. file not encrypted @ storage!

further inference

  1. i verify asset file ams explorer(image attached).
  2. downloading file ams explorer didn't work. enter image description here

from docs - "if have unencrypted media wish encrypt prior upload should specify assetcreationoptions.storageencrypted when creating asset. encrypts media locally prior uploading azure storage stored encrypted."

from rest api reference (https://msdn.microsoft.com/en-us/library/azure/hh974277.aspx) -

storageencrypted = 1: specifies asset's files should encrypted on upload , storage when creating asset.

what mean providing storageencryption option telling system asset has been encrypted before uploading. .net sdk doing you, when using rest api have encrypt file before uploading.

you can @ https://github.com/azure/azure-sdk-for-media-services/blob/dev/src/net/client/entities/assetfiledata.cs see how encryption asset file implemented in .net sdk.

you have create content key , associate asset , use encryption. once have information system, azure media services able decrypt content during encoding other formats.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -