Good day
I have some problems when I encrypt file PR.f4v with hlspackager (from AMS5) – I get error:
«Error 10: Encryption error while processing prog_index.m3u8, Ref: [2:Invalid key file]»
File «common-key.bin» - length 128 bit. I used this file long time before with f4fpackager and didn’t have any problems.
My string:
hlspackager --input-file=/data/content/PR.f4v --output-path=/data/content/ --protection-scheme=FlashAccessV4 --license-server-url=http://127.0.0.1:8080/flashaccessserver --transport-cert=t.der --license-server-cert=ls.der --packager-credential=package.pfx --credential-pwd=Tae7uiMugyug --policy-file=pcustomauthunlimios.pol --common-key-file=common-key.bin --content-id=123 --faxskey-server-url=http://127.0.0.1:8080/flashaccessserver
I have some questions:
Thank you.
Hello,
Key can be generated using
openssl rand -out keyfile.bin -base64 16
Remember key to be used with hlspackager shouldn't be scrambled key as we used with AMS. With AMS (just-in-time streaming workflows) keys are generally configured on the disk for continuous use while the streaming is going on. So there we need to store it scramble to gaurad against unauthorised access to the disk.
But hlspackager is offline tool, where key is required only at time of packaing the content, so this need not be scrambled.
hlspacakger requires base 64 encoded 16 bytes.
Thanks
I create keyfile.bin and insert that key in my string:
hlspackager --input-file=/data/content/PR.f4v --output-path=/data/content/ --protection-scheme=FlashAccessV4 --license-server-url=http://127.0.0.1:8080/flashaccessserver --transport-cert=t.der --license-server-cert=ls.der --packager-credential=package.pfx --credential-pwd=Tae7uiMugyug --policy-file=pcustomauthunlimios.pol --common-key-file=keyfile.bin --content-id=123 --faxskey-server-url=http://127.0.0.1:8080/flashaccessserver
but now i have the error:
Error 10: Encryption error while processing prog_index.m3u8, Ref: [1:Key file missing]
North America
Europe, Middle East and Africa
Asia Pacific