Skip to content

BuyDRM's KeyOS Platform

BuyDRM

BuyDRM's KeyOS platform is a multi-DRM provider that allows you to protect video content with several DRM technologies.

With BuyDRM, you can encrypt your content for HLS or DASH delivery.

Flussonic is acting as an online packager. It means that you keep your original content untouched on disk and can even serve it to some users without protection, if it is required, but for the outer world Flussonic will encrypt the content on demand.

Flussonic supports encrypting live streams and VOD files.

Configuration

Flussonic supports the CPIXv2 protocol for retrieving encryption keys from BuyDRM. DRM configuration for a stream or VOD location is set up as follows:

stream example_stream {
  input udp://239.0.0.1:1234;
  protocols dash hls;
  drm keyos end_user_cert=/etc/flussonic/buydrm/user_public_cert.pem end_user_private_key=/etc/flussonic/buydrm/user_private_key.pem;
}
storage drm {
  path /storage/vod;
  protocols dash hls;
  drm keyos end_user_cert=/etc/flussonic/buydrm/user_public_cert.pem end_user_private_key=/etc/flussonic/buydrm/user_private_key.pem;
}
  • end_user_cert.pem — public part of the BuyDRM x509 End User’s certificate.
  • user_private_key.pem — private part of the BuyDRM x509 End User’s certificate.

Contact BuyDRM support to obtain the end_user_cert.pem and user_private_key.pem files. These files should be placed on the server in the /etc/flussonic/buydrm directory.

By default, Flussonic includes the stream name in the CPIX@ContentId attribute in CPIX requests. To manually set the CPIX@ContentId value, use the resource_id parameter. Configuration example:

stream example_stream {
  input udp://239.0.0.1:1234;
  protocols dash hls;
  drm keyos end_user_cert=/etc/flussonic/buydrm/user_public_cert.pem end_user_private_key=/etc/flussonic/buydrm/user_private_key.pem resource_id=MY_UNIQUE_CONTENT_ID;
}

For the VOD file /storage/vod/content.mp4, Flussonic will read the ContentId from the file /storage/content.mp4.keyos_id.

Find the latest list of settings for BuyDRM in the Flussonic API reference by selecting buydrm in the drop-down list of vendors.