【问题标题】:What does "e": "AQAB" mean in jwks?“e”:“AQAB”在 jwks 中是什么意思?
【发布时间】:2021-12-29 12:33:08
【问题描述】:

"e": "AQAB" 在 JWKS - Json Web 密钥集中是什么意思

{
  "keys": [
    {
      "kty": "RSA", #key type
      "e": "AQAB",  #Question - what does "e" mean or stand for. And what values can e take. What is AQAB here. 
      "use": "sig", #verify client assertion signature. This means what is the use of the key. Answer - to verify signature. Right?
      "kid": "somebase64encodestring", #key id
      "alg": "RS256",  #key algoritham. Here it is RSA.
      "n": "anotherbase64encodestring"  #This is the actual public key base64 encoded.
    }
  ]
}

【问题讨论】:

标签: jwt jwk jose4j nimbus-jose-jwt


【解决方案1】:

它也是公钥的一部分。来自https://datatracker.ietf.org/doc/html/rfc7518#section-6.3.1.2

6.3.1.2。 “e”(指数)参数

“e”(指数)参数包含 RSA 的指数值 公钥。它表示为 Base64urlUInt 编码的值。

例如,当表示值 65537 时,八位字节序列 要进行 base64url 编码,必须由三个八位字节 [1, 0, 1] 组成; 该值的结果表示为“AQAB”。

【讨论】:

  • 当指定 alg 且公钥存在时。不能从公钥中推断出"e": "AQAB"。 ++1。我想是的。那为什么要在 jwks.额外的好处或要求是什么。
猜你喜欢
  • 2010-11-06
  • 2020-03-03
  • 2015-09-21
  • 2012-05-06
  • 2019-05-07
  • 2015-08-04
  • 2012-05-30
  • 2016-12-22
相关资源
最近更新 更多