JWT Web Token for WeatherKit

I'm trying to write a program in python 2.7 to get data via WeatherKit using an HTTP request. Following the documentation in Request auththentication for WeatherKit REST API, I went to jwt.io to create the token. The documentation says to "sign it with your WeatherKit private key using the ES256 algorithm". I have my WeatherKit private key, but the ES256 algorithm seems to also require a public key to sign the token. How do I get a valid public key to match my private key, or is there a legitimate way to bypass that requirement?

Also, I've seen posts that seem to say that tokens expire within hours of being created. I want to create a token that expires a long time out (perhaps in a year), and just hard code that into my program.

Post not yet marked as solved Up vote post of RealtimeB Down vote post of RealtimeB
389 views