def self_sign_jwks(keyjar, iss, kid='<STR_LIT>', lifetime=<NUM_LIT>):
<EOL>_jwt = JWT(keyjar, iss=iss, lifetime=lifetime)<EOL>jwks = keyjar.export_jwks(issuer=iss)<EOL>return _jwt.pack(payload={'<STR_LIT>': jwks}, owner=iss, kid=kid)<EOL>
Create a signed JWT containing a JWKS. The JWT is signed by one of the
keys in the JWKS.

:param keyjar: A KeyJar instance with at least one private signing key
:param iss: issuer of the JWT, should be the owner of the keys
:param kid: A key ID if a special key should be used otherwise one
    is picked at random.
:param lifetime: The lifetime of the signed JWT
:return: A signed JWT