|
|
|
|
|
by deathanatos
3173 days ago
|
|
> A signed JWT is known as a JWS (JSON Web Signature) and an encrypted JWT is known as a JWE (JSON Web Encryption). In fact a JWT does not exist itself — either it has to be a JWS or a JWE. It’s like an abstract class — the JWS and JWE are the concrete implementations. This is backwards; a JWT is the payload of (usually, IMO) a JWS, sometimes a JWE. But not all JWSs/JWEs are JWTs, so JWE/JWS cannot be called a concrete implementation of a JWT. > Both in TLS mutual authentication and JWT-based approach, each microservice needs to have it’s own certificates. JWT doesn't, to my knowledge, make use of certificates. I'm less clear on the JWE cases, but JWS's only carry the algorithm used to do the signing, and the signature. You have to know/figure out what key signed it to verify it. Further, if you're using the HMAC algorithms, you're definitely not using a cert. |
|
HMAC is not recommended - as it will be symmetric key. In fact you will find more details in the above link...