Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "exponent is larger than modulus" error when tried with Windows 10 Pin #13

Open
rajapudikishore opened this issue Jul 21, 2021 · 1 comment

Comments

@rajapudikishore
Copy link

Got below error using Windows Pin. Can you please let me know the resolution for this error

2021-07-21 06:31:12.020 ERROR 19452 --- [nio-8080-exec-5] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.orquanet.webauthn.crypto.cose.exception.CoseException: java.security.spec.InvalidKeySpecException: java.security.InvalidKeyException: exponent is larger than modulus] with root cause

java.security.InvalidKeyException: exponent is larger than modulus
at java.base/sun.security.rsa.RSAPublicKeyImpl.checkExponentRange(RSAPublicKeyImpl.java:151) ~[na:na]
at java.base/sun.security.rsa.RSAPublicKeyImpl.(RSAPublicKeyImpl.java:95) ~[na:na]
at java.base/sun.security.rsa.RSAKeyFactory.generatePublic(RSAKeyFactory.java:339) ~[na:na]
at java.base/sun.security.rsa.RSAKeyFactory.engineGeneratePublic(RSAKeyFactory.java:234) ~[na:na]
at java.base/java.security.KeyFactory.generatePublic(KeyFactory.java:352) ~[na:na]
at org.orquanet.webauthn.crypto.cose.mapper.CoseMapper.rsaPublicKey(CoseMapper.java:118) ~[classes/:na]
at org.orquanet.webauthn.crypto.cose.mapper.CoseMapper.keyInfo(CoseMapper.java:103) ~[classes/:na]
at org.orquanet.webauthn.webauthn.attestation.validation.attestation.packed.self.PackedDerogateAttestationValidator.verify(PackedDerogateAttestationValidator.java:35) ~[classes/:na]
at org.orquanet.webauthn.webauthn.attestation.validation.attestation.AttestationValidator.verify(AttestationValidator.java:48) ~[classes/:na]
at org.orquanet.webauthn.webauthn.attestation.validation.AuthenticatorAttestationValidator.validate(AuthenticatorAttestationValidator.java:14) ~[classes/:na]
at org.orquanet.webauthn.controller.fido.FidoRegistrationController.registerFinal(FidoRegistrationController.java:148) ~[classes/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]

@xarenard
Copy link
Owner

hi

Which jdk version are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants