Hi @Yuriy.Zabrovarnyy,
Thank you for getting back. Noticed my mistake the keys were same only attribute "use" was different.
I am using nimbus-jose-jwt:7.8 to generate RSA keys.
```
KeyPaireGenerator gen = KeyPairGenerator.getInstance("RSA");
gen.initialize(2048);
signingKey = new RSAKey.Builder((RSAPublicKey) keyPair.getPublic())
.privateKey((RSAPrivateKey) keyPair.getPrivate())
.keyUse(KeyUse.SIGNATURE)
.keyID(UUID.randomUUID().toString())
.build();
//was generating jwtk from same/KeyPair
testKey = new RSAKey.Builder((RSAPublicKey) keyPair.getPublic())
.privateKey((RSAPrivateKey) keyPair.getPrivate())
.keyUse(KeyUse.ENCR)
.keyID(UUID.randomUUID().toString())
.build();
```
Its working as it should, I just tested different usecases: missing keys at client JWKS, sameId but different keys etc.
Another quick question though if we want encrypted access token while using:
```
id_token_encrypted_response_alg="RSA-OAEP"
id_token_encrypted_response_enc= "A128CBC+HS256"
```
in dynamic client registration step. Which key will be used to encrypt access token? Can we specify somehow? or its automatically picked from provided jwks set on basis of use:"enc" parameter. Our client is native so we don't we pushing a public key for encryption on client registration in jwks.
Thanks alot for guiding.