Hi All,
We are working on OpenID Connect Conformance Testing, using the test suite
provided in link [1].
The current requirement we have is, exposing the Public Certificate via
jwks.json ('jwks_uri'). We followed the 'jwks_uri'[2] of 'Google OAuth2
cert' and designed following jwks.json file to expose the public
certificate of our server.
{
"keys": [
{
"kty": "RSA",
"alg": "RS256",
"use": "sig",
"n":
"94A7FA15D6F59CF3F4E4412880BD3A2EB0CCCE3386AC0768A5B6BD902A8CE78B969516EF35F0CA4E2D922BF0B3274F35A5949BEF680E510007696C409BFB8F058DB05ED21B1E51D3791E9C2F9C7FC35BC65C706BE4E7723A3ABABB84B0AFD591EDB8E0A8920873FC04EB8723EAF9092D31F5E7452E07ACA1894F3C5A09C53B39",
"e": "65537"
}
]
}
To get the modulus and the exponent values for the Public Key, we have
followed post [3].
After doing all these, when running the test suite, the signature
validation fails. What I feel is the "n" and "e" values we have set are not
is proper encoding/encryption. Seems this is not the format in google cert
[2].
- Do you have any clue on how to get the modulus and the exponent values
for a Public Key, in proper format ?
- Have anyone came across similar requirement earlier?
[1] http://openid.net/certification/testing/
[2] https://www.googleapis.com/oauth2/v2/certs
[3] RSA: Get exponent and modulus given a public key
<http://stackoverflow.com/questions/3116907/rsa-get-exponent-and-modulus-given-a-public-key>
Thanks,
Pandula
--
*Pandula Kariyawasam K.B.*
*Senior Software Engineer - QA*
Mobile: +94772314510
*WSO2 Inc.lean . enterprise . middlewear.http://www.wso2.com
<http://www.wso2.com>*
<http://www.wso2.com>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev