Questions tagged [jwk]

A JSON Web Key is a JSON data structure that represents a cryptographic key.

A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key.

The specification for this structure is in RFC 7517.

218 questions
0
votes
1 answer

React native RSA encryption with a public PEM or SSLeay key

I am trying to find a working javascript library for react-native that will allow RSA public key encryption in PEM format. I am not an expert in encryption and just starting out with react-native so please excuse me if i happened to miss something…
0
votes
1 answer

How to use jose.4.j to output JWK set endpoint?

I can see how to create new Keys with jose.4.j but what I'm wondering is how to take an array of them and output a publicly accessible JSON list for use as part of the discovery endpoint in OiDC. Something like the IETF draft example ... {"keys": …
Neil C. Obremski
  • 18,696
  • 24
  • 83
  • 112
0
votes
1 answer

Which of an OAuth 2.0 provider's JWKs should be used to verify an OpenID Connect `id_token`?

If an authentication server supplies multiple JSON Web Keys (e.g. https://www.googleapis.com/oauth2/v3/certs) which should be used to verify an OpenID Connect id_token as part of the OPenID Connect Implicit Flow? Should the id_token be verified with…
-1
votes
1 answer

Micronaut JWKS keys endpoint mocked with Wiremock dynamic port for testing

I have a Micronaut application that uses JWT and JWKS. In my application yaml for tests, I have configured the jwks url as follows: micronaut: security: token: jwt: signatures: jwks: securityservice: …
dcalap
  • 1,048
  • 2
  • 13
  • 37
-1
votes
2 answers

Android Encrypt CC Using RSA JWK

I'm trying to create an RSAPublicKeySpec with the JWK modulus and exponent provided by CyberSource. The goal is to use it to encrypt a given credit card number. I'm stuck with this error "RSA Exponent is even" Example JWK: { "kty": "RSA", "use":…
Marc Nunes
  • 238
  • 3
  • 13
-1
votes
1 answer

JSON Web Key (JWK) for IRS E-services account

I need a JSON Web Key for my client to access the IRS E-services system. The following fields are required in the JWK: kid, kty, use, n, e, x5t, x5c. The kty field should be equal to "RSA". I want to do self-signed. I get an error exception with…
-2
votes
2 answers

How to get the key ID value in a JWK response (PHP)

I'm generating a public key on the server side to pass on the client side to render an iframe (hosted by a third party). I'm getting a whole chunk of data from the JWK response, but I only need the keyID value. { "data":…
yukimiya
  • 13
  • 5
-3
votes
1 answer

jwk = JWT::JWK.import(keyHash) *** ArgumentError Exception: invalid base64

I'm trying to do te backend apple login and it looks work good until the line jwk = JWT::JWK.import(keyHash) it's always return the error invalid base64. I'm using the gem jwt version 2.2.1 and Ruby 2.2.4 begin header_segment =…
Anderson
  • 1
  • 1
1 2 3
14
15