I have a service that issues tokens to registered clients. Service generates a public key and private key. Stores the private key securely. When a client requests for a token, my service authenticates the client and issues a JWT token which is signed using the private key. My service also publishes the JWKS URI,which has public key info and a public certificate.
Question:
- My service is exposing the token and JWKS URI to the internet (https) . What is the risk of exposing the public key and certificate which is self-signed?
