You need to sign something with private RSA key. You have some documentation or make your google search about subject. And all excamples are with PHP function openssl_sign.
But we don't eat PHP anymore. So let's translate few lines PHP into something better, like Python.