How to generate a custom license for Widevine DRM?

Is it possible to create the license link using PHP, Python, or JavaScript? I’ve been exploring DRM video encryption and noticed that all the examples online require a license link and an “X-AxDRM-Message” encrypted message in the header request.
When I use Bento4 to encrypt videos for Widevine, it only gives me a KID and a Key, without any information on generating a license link. How can I utilize these details? Or, how can I obtain this link for free?