# Error downloading Public key from serverCannot obtain jwks from url Could not generate secret

**URL:** <https://community.mosip.io/t/error-downloading-public-key-from-servercannot-obtain-jwks-from-url-could-not-generate-secret/2622>\
**Category:** Support\
**Created:** [March 31, 2026, 3:17pm UTC](https://community.mosip.io/t/error-downloading-public-key-from-servercannot-obtain-jwks-from-url-could-not-generate-secret/2622 "2026-03-31T15:17:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZeD](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/zed/32/1891_2.png) [@ZeD](https://community.mosip.io/u/ZeD)\
**Post date:** [March 31, 2026, 3:17pm UTC](https://community.mosip.io/t/error-downloading-public-key-from-servercannot-obtain-jwks-from-url-could-not-generate-secret/2622/1 "2026-03-31T15:17:26Z")

</div>

I’m encountering an error while trying to retrieve the packet status using an RID in the Admin UI.  
The request is [http://localhost:8110/registrationprocessor/v1/registrationtransaction/search/11369100150000520260325162629](http://localhost:8110/registrationprocessor/v1/registrationtransaction/search/11369100150000520260325162629%22,%E2%80%9Clogger_name%E2%80%9D:%E2%80%9Cio.mosip.kernel.auth.defaultadapter.filter.AuthFilter%E2%80%9D,%E2%80%9Cthread_name%E2%80%9D:%E2%80%9Chttp-nio-8110-exec-1%E2%80%9D,%E2%80%9Clevel%E2%80%9D:%E2%80%9CDEBUG%E2%80%9D,%E2%80%9Clevel_value%E2%80%9D:10000,%E2%80%9CappName%E2%80%9D:%22application,registration-processor%E2%80%9D)

 ![mosipComm1](https://europe1.discourse-cdn.com/flex017/uploads/mosip1/original/2X/d/d51259e8d8548bd707ec0724b6fc96465f3f0420.jpeg)

{“@timestamptimestamp”:“2026-03-31T15:36:12.133@version01:00”,“@version”:“1”,“message”:“Extracted auth token for request [http://localhost:8110/registrationprocessor/v1/registrationtransaction/search/11369100150000520260325162629",“logger\_name”:“io.mosip.kernel.auth.defaultadapter.filter.AuthFilter”,“thread\_name”:“http-nio-8110-exec-1”,“level”:“DEBUG”,“level\_value”:10000,“appName”:"application,registratio@timestamp-processor”](http://localhost:8110/registrationprocessor/v1/registrationtransaction/search/11369100150000520260325162629%22,%E2%80%9Clogger_name%E2%80%9D:%E2%80%9Cio.mosip.kernel.auth.defaultadapter.filter.AuthFilter%E2%80%9D,%E2%80%9Cthread_name%E2%80%9D:%E2%80%9Chttp-nio-8110-exec-1%E2%80%9D,%E2%80%9Clevel%E2%80%9D:%E2%80%9CDEBUG%E2%80%9D,%E2%80%9Clevel_value%E2%80%9D:10000,%E2%80%9CappName%E2%80%9D:%22application,registratio@timestamp-processor%E2%80%9D)}  
{“@timestamp”:“2026-03@version31T15:36:12.148+01:00”,“@version”:“1”,“message”:“offline verification for environment profile. UserName: oussama”,“logger\_name”:“io.mosip.kernel.auth.defaultadapter.helper.ValidateTokenHelper”,“thread\_name”:“http-nio-8110-exec-1”,“level”:“INFO”,“level\_value”:20000,“appName”:“applica@timestampion,registration-processor”}  
{“@tim@versionstamp”:“2026-03-31T15:36:18.221+01:00”,“@version”:“1”,“message”:“Error downloading Public key from serverCannot obtain jwks from url [https://iam.mosip.ma/auth/realms/mosip/protocol/openid-connect/certs",“logger\_name”:“io.mosip.kernel.auth.defaultadapter.helper.ValidateTokenHelper”,“thread\_name”:“http-nio-8110-exec-1”,“level”:“ERROR”,“level\_value”:40000,“a@timestamppName”:"application,registration-pr@versioncessor”](https://iam.mosip.ma/auth/realms/mosip/protocol/openid-connect/certs%22,%E2%80%9Clogger_name%E2%80%9D:%E2%80%9Cio.mosip.kernel.auth.defaultadapter.helper.ValidateTokenHelper%E2%80%9D,%E2%80%9Cthread_name%E2%80%9D:%E2%80%9Chttp-nio-8110-exec-1%E2%80%9D,%E2%80%9Clevel%E2%80%9D:%E2%80%9CERROR%E2%80%9D,%E2%80%9Clevel_value%E2%80%9D:40000,%E2%80%9Ca@timestamppName%E2%80%9D:%22application,registration-pr@versioncessor%E2%80%9D)}  
{“@timestamp”:“2026-03-31T15:37:11.690+01:00”,“@version”:“1”,“message”:“HikariPool-1 - Thread starvation or clock leap detected (housekeeper delta=1m18s224ms3µs557ns).”,“logger\_name”:“com.zaxxer.hikari.pool.HikariPool”,“thread\_name”:“HikariPool-1 housekeeper”,“level”:“WARN”,“level@timestampvalue”:30000,“appName”:“application@versionregistration-processor”}  
{“@timestamp”:“2026-03-31T15:37:36.479+01:00”,“@version”:“1”,“message”:“Uncaught exception thrown”,“logger\_name”:“org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter”,“thread\_name”:“http-nio-8110-exec-1”,“level”:“ERROR”,“level\_value”:40000,“stack\_trace”:“org.springframework.web.client.ResourceAccessException: I/O error on GET request for “[https://iam.mosip.ma/auth/realms/mosip/protocol/openid-connect/userinfo\”:](https://iam.mosip.ma/auth/realms/mosip/protocol/openid-connect/userinfo%5C%E2%80%9D:) Could not generate secret; nested exception is javax.net.ssl.SSLHandshakeException: Could not generate secret\n\tat org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:732)\n\tat org.springframework.web.client.RestTemplate.execute(RestTemplate.java:680)\n\tat org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:600)\n\tat io.mosip.kernel.auth.defaultadapter.helper.ValidateTokenHelper.doOnlineTokenValidation(ValidateTokenHelper.java:317)\n\tat io.mosip.kernel.auth.defaultadapter.helper.TokenValidationHelper.doOnlineTokenValidation(TokenValidationHelper.java:49)\n\tat io.mosip.kernel.auth.defaultadapter.helper.TokenValidationHelper.doOfflineEnvTokenValidation(TokenValidationHelper.java:83)\n\tat io.mosip.kernel.auth.defaultadapter.helper.TokenValidationHelper.doOfflineTokenValidation(TokenValidationHelper.java:72)\n\tat io.mosip.kernel.auth.defaultadapter.helper.TokenValidationHelper.getTokenValidatedUserResponse(TokenValidationHelper.java:41)\n\tat io.mosip.kernel.auth.defaultadapter.handler.AuthHandler.retrieveUser(AuthHandler.java:112)\n\tat org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:144)\n\tat org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:174)\n\tat io.mosip.kernel.auth.defaultadapter.filter.AuthFilter.attemptAuthentication(AuthFilter.java:226)\n\tat org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:212)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)\n\tat org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:48)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat brave.servlet.TracingFilter.doFilter(TracingFilter.java:86)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n\tat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)\n\tat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n\tat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468)\n\tat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n\tat java.base/java.lang.Thread.run(Thread.java:829)\nCaused by: javax.net.ssl.SSLHandshakeException: Could not generate secret\n\tat java.base/sun.security.ssl.KAKeyDerivation.t13DeriveKey(KAKeyDerivation.java:128)\n\tat java.base/sun.security.ssl.KAKeyDerivation.deriveKey(KAKeyDerivation.java:63)\n\tat java.base/sun.security.ssl.ServerHello$T13ServerHelloConsumer.consume(ServerHello.java:1260)\n\tat java.base/sun.security.ssl.ServerHello$ServerHelloConsumer.onServerHello(ServerHello.java:994)\n\tat java.base/sun.security.ssl.ServerHello$ServerHelloConsumer.consume(ServerHello.java:882)\n\tat java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:392)\n\tat java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:443)\n\tat java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:421)\n\tat java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:189)\n\tat java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172)\n\tat java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1511)\n\tat java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1421)\n\tat java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:456)\n\tat java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:427)\n\tat org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396)\n\tat org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355)\n\tat org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)\n\tat org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373)\n\tat org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)\n\tat org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)\n\tat org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)\n\tat org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)\n\tat org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)\n\tat org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)\n\tat org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)\n\tat org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)\n\tat org.springframework.http.client.HttpComponentsClientHttpRequest.executeInternal(HttpComponentsClientHttpRequest.java:87)\n\tat org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)\n\tat org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)\n\tat org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:108)\n\tat io.mosip.kernel.auth.defaultadapter.config.RestTemplateInterceptor.intercept(RestTemplateInterceptor.java:54)\n\tat org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:92)\n\tat org.springframework.http.client.InterceptingClientHttpRequest.executeInternal(InterceptingClientHttpRequest.java:76)\n\tat org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)\n\tat org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)\n\tat org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:723)\n\t… 68 common frames omitted\nCaused by: java.security.InvalidKeyException: cannot identify XDH private key\n\tat org.bouncycastle.jcajce.provider.asymmetric.edec.KeyAgreementSpi.engineDoPhase(Unknown Source)\n\tat java.base/javax.crypto.KeyAgreement.doPhase(KeyAgreement.java:579)\n\tat java.base/sun.security.ssl.KAKeyDerivation.t13DeriveKey(KAKeyDerivation.java:104)\n\t…@timestamp103 common frames omitted\n”,“appNa@versione”:“application,registration-processor”}  
{“@timestamp”:“2026-03-31T15:37:36.483+01:00”,“@version”:“1”,“message”:“Servlet.service() for servlet [dispatcherServlet] in context with path threw exception”,“logger\_name”:“org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet]”,“thread\_name”:“http-nio-8110-exec-1”,“level”:“ERROR”,“level\_value”:40000,“stack\_trace”:“org.springframework.web.client.ResourceAccessException: I/O error on GET request for “[https://iam.mosip.ma/auth/realms/mosip/protocol/openid-connect/userinfo\”:](https://iam.mosip.ma/auth/realms/mosip/protocol/openid-connect/userinfo%5C%E2%80%9D:) Could not generate secret; nested exception is javax.net.ssl.SSLHandshakeException: Could not generate secret\n\tat org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:732)\n\tat org.springframework.web.client.RestTemplate.execute(RestTemplate.java:680)\n\tat org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:600)\n\tat io.mosip.kernel.auth.defaultadapter.helper.ValidateTokenHelper.doOnlineTokenValidation(ValidateTokenHelper.java:317)\n\tat io.mosip.kernel.auth.defaultadapter.helper.TokenValidationHelper.doOnlineTokenValidation(TokenValidationHelper.java:49)\n\tat io.mosip.kernel.auth.defaultadapter.helper.TokenValidationHelper.doOfflineEnvTokenValidation(TokenValidationHelper.java:83)\n\tat io.mosip.kernel.auth.defaultadapter.helper.TokenValidationHelper.doOfflineTokenValidation(TokenValidationHelper.java:72)\n\tat io.mosip.kernel.auth.defaultadapter.helper.TokenValidationHelper.getTokenValidatedUserResponse(TokenValidationHelper.java:41)\n\tat io.mosip.kernel.auth.defaultadapter.handler.AuthHandler.retrieveUser(AuthHandler.java:112)\n\tat org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:144)\n\tat org.springframework.security.authentication.ProviderManager.authenticate(ProviderManager.java:174)\n\tat io.mosip.kernel.auth.defaultadapter.filter.AuthFilter.attemptAuthentication(AuthFilter.java:226)\n\tat org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:212)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:334)\n\tat org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:215)\n\tat org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:178)\n\tat org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:357)\n\tat org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:270)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.doFilter(ExceptionLoggingFilter.java:48)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat brave.servlet.TracingFilter.doFilter(TracingFilter.java:86)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496)\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)\n\tat org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)\n\tat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)\n\tat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)\n\tat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790)\n\tat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1468)\n\tat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n\tat java.base/java.lang.Thread.run(Thread.java:829)\nCaused by: javax.net.ssl.SSLHandshakeException: Could not generate secret\n\tat java.base/sun.security.ssl.KAKeyDerivation.t13DeriveKey(KAKeyDerivation.java:128)\n\tat java.base/sun.security.ssl.KAKeyDerivation.deriveKey(KAKeyDerivation.java:63)\n\tat java.base/sun.security.ssl.ServerHello$T13ServerHelloConsumer.consume(ServerHello.java:1260)\n\tat java.base/sun.security.ssl.ServerHello$ServerHelloConsumer.onServerHello(ServerHello.java:994)\n\tat java.base/sun.security.ssl.ServerHello$ServerHelloConsumer.consume(ServerHello.java:882)\n\tat java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:392)\n\tat java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:443)\n\tat java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:421)\n\tat java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:189)\n\tat java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:172)\n\tat java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1511)\n\tat java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1421)\n\tat java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:456)\n\tat java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:427)\n\tat org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396)\n\tat org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355)\n\tat org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)\n\tat org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373)\n\tat org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)\n\tat org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)\n\tat org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)\n\tat org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)\n\tat org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)\n\tat org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)\n\tat org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)\n\tat org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)\n\tat org.springframework.http.client.HttpComponentsClientHttpRequest.executeInternal(HttpComponentsClientHttpRequest.java:87)\n\tat org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)\n\tat org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)\n\tat org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:108)\n\tat io.mosip.kernel.auth.defaultadapter.config.RestTemplateInterceptor.intercept(RestTemplateInterceptor.java:54)\n\tat org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:92)\n\tat org.springframework.http.client.InterceptingClientHttpRequest.executeInternal(InterceptingClientHttpRequest.java:76)\n\tat org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)\n\tat org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53)\n\tat org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:723)\n\t… 68 common frames omitted\nCaused by: java.security.InvalidKeyException: cannot identify XDH private key\n\tat org.bouncycastle.jcajce.provider.asymmetric.edec.KeyAgreementSpi.engineDoPhase(Unknown Source)\n\tat java.base/javax.crypto.KeyAgreement.doPhase(KeyAgreement.java:579)\n\tat java.base/sun.security.ssl.KAKeyDerivation.t13DeriveKey(KAKeyDerivatio@timestamp.java:104)\n\t… 103 common frames omitted\n”,“appName”:“application,registration-processor”}  
{“@timestamp”:“2026-03-31T15:37:36.547Z”,“level”:“ACCESS”,“level\_value”:70000,“traceId”:“6d7b67d8f8994cda”,“statusCode”:500,“req.requestURI”:“/registrationprocessor/v1/registrationtransaction/search/11369100150000520260325162629”,“bytesSent”:412,“timeTaken”:84.463,“appName”:“application,registration-processor”,“req.userAgent”:“Apache-HttpClient/4.5.6 (Java/11.0.30)”,“req.xForwardedFor”:“-”,“req.referer”:“-”,“req.method”:“GET”,“req.remoteHost”:“127.0.0.1”}

---

<div class="post-metadata">

**Author:** ![mrudula\_ch](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/mrudula_ch/32/1921_2.png) [@mrudula\_ch](https://community.mosip.io/u/mrudula_ch)\
**Post date:** [April 1, 2026, 9:34am UTC](https://community.mosip.io/t/error-downloading-public-key-from-servercannot-obtain-jwks-from-url-could-not-generate-secret/2622/2 "2026-04-01T09:34:22Z")

</div>

Hi ZeD

Thank you for reaching out to us. We will look into the issue and get back to you shortly.

Regards

Mrudula  
on behalf of Team MOSIP.

---

<div class="post-metadata">

**Author:** ![ZeD](https://dub1.discourse-cdn.com/flex017/user_avatar/community.mosip.io/zed/32/1891_2.png) [@ZeD](https://community.mosip.io/u/ZeD)\
**Post date:** [April 1, 2026, 9:48am UTC](https://community.mosip.io/t/error-downloading-public-key-from-servercannot-obtain-jwks-from-url-could-not-generate-secret/2622/3 "2026-04-01T09:48:50Z")

</div>

> [@mrudula\_ch](#):
>
> Thank you for reaching out to us. We will look into the issue and get back to you shortly.
> 
> Regards
> 
> Mrudula  
> on behalf of Team MOSIP.

Dear Mrudula,

Thank you for your response and for looking into the issue.

I would be grateful if you could kindly look into this at your earliest convenience, as it is time-sensitive. Please let me know if there is anything needed from my side to assist with the resolution.

I look forward to your update.

Warm regards  
Thank You.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex017/uploads/mosip1/original/1X/f60a343830fe848c9a68e2d1cc654d0cb7fbbaf2.svg) [@system](https://community.mosip.io/u/system)\
**Post date:** [April 11, 2026, 9:49am UTC](https://community.mosip.io/t/error-downloading-public-key-from-servercannot-obtain-jwks-from-url-could-not-generate-secret/2622/4 "2026-04-11T09:49:19Z")

</div>

Closed on April 11, 2026, 9:49am UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
