Integration with Key Rotation
Before activating key rotation, it is recommanded to contact a Nagra representative to help with the integration.
1. Guideline on Key Rotation using start & end dates
Key Rotation using start and end dates is available with the CPIX interface.
Key Rotation can be activated on an existing content by creating a new key including a period.
The activation of key rotation can be done per content and encryption scheme.
The encryption method is defined in the key requests sent to the key server
Three possible values, which are considered as independant : cbcs, cenc, unspecified (not set)
It is possible to activate key rotation on specific encryption schemes only.
Not setting the encryption method is considered also as an independant value.
Key Rotation can be deactivated for a content by simply stopping creating new keys or setting an end date in a distant future on the last key.
For a single content, either key rotation by start and end dates or by index can be used but not simultaneously.
SSP pre-delivers the keys in advance to flatten the peak of license requests when the key rotates for a live OTT stream.
The pre-delivery mechanism is based on the license end date and playback duration
All the keys which are valid during the global license validity (addition of end date and playback duration) are included.
The packager must request the next keys in advance so that the license server can deliver them in the license.
It is important that the packager doesn’t push the next key at the last moment
In which case, all the devices will request a new license at the same time when the latest key validity expires.
When using key rotation by start and end dates, the computation of the license end date and playback duration must absolutely be defined so that it expires before the end of the crypto period of the last key in the license.
2. Guideline on Key Rotation using indexes
Key Rotation by indexes is available with the CPIX, SPEKE V1 and SPEKE V2 interfaces.
The activation of key rotation can be done per content and encryption scheme.
The encryption method is defined in the key requests sent to the key server
Three possible values, which are considered as independant : cbcs, cenc, unspecified (not set)
It is possible to activate key rotation on specific encryption schemes only.
Not setting the encryption method is considered also as an independant value.
Key Rotation can be activated on an existing content by inserting a new key to the key server including a period index.
During the activation, if a key already exists for the requested content and encryption scheme, SSP will associate the requested period index to the existing key.
After the activation and if the period index is incremented, new keys will be created.
Key Rotation can be deactivated for a content by simply stopping creating new keys with incremented indexes.
For a single content, either key rotation by start and end dates or by index can be used but not simultaneously.
The packager must increment the period indexes sequentially, one by one.
SSP pre-delivers the keys in advance to flatten the peak of license requests when the key rotates for a live OTT stream.
SSP will pre-provision the next keys in advance in the license, the number of pre-provisionned keys can be configured.
By default, SSP pre-delivers the next two keys associated to the next two indexes.
In this case, the packager can request new keys at the last moment (just before the last key validity expiry)
When using key rotation by indexes, the playback duration must absolutely be defined so that it expires before :
Crypto period + Num(pre-provisioned keys) * Crypto period
Example : Crypto period of 1 hour, 2 keys are pre-provisionned => 1 + 2*1 = 3 hours