Getting error while downloading certificate

Hi Team,

I have setup the sunbird credential with custom use case but getting error while downloading certificate from Inji Web. Please, help. Below is the error log

{"@timestamp":"2024-10-09T04:25:34.798Z","@version":"1","message":"sessionId -  -  - Total Number of certificates found:1","logger_name":"io.mosip.kernel.keymanagerservice.service.impl.KeymanagerServiceImpl","thread_name":"http-nio-8088-exec-4","level":"INFO","level_value":20000}
{"@timestamp":"2024-10-09T04:25:35.169Z","@version":"1","message":"Unhandled exception encountered in handler advice","logger_name":"io.mosip.esignet.advice.ExceptionHandlerAdvice","thread_name":"http-nio-8088-exec-2","level":"ERROR","level_value":40000,"stack_trace":"java.lang.NullPointerException: null\n\tat io.mosip.esignet.vci.services.VCIssuanceServiceImpl.getScopeCredentialMapping(VCIssuanceServiceImpl.java:184)\n\tat io.mosip.esignet.vci.services.VCIssuanceServiceImpl.getCredential(VCIssuanceServiceImpl.java:86)\n\tat io.mosip.esignet.controllers.VCIssuanceController.getCredential(VCIssuanceController.java:38)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566)\n\tat org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)\n\tat org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)\n\tat org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)\n\tat org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878)\n\tat org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792)\n\tat org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)\n\tat org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)\n\tat org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)\n\tat org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)\n\tat org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:652)\n\tat org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:733)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)\n\tat io.mosip.esignet.vci.filter.AccessTokenValidationFilter.doFilterInternal(AccessTokenValidationFilter.java:94)\n\tat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)\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.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:103)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC

Hi Aniket,

Hope you are good.

on checking the logs that you shared, it seems like eSignet is not able to serialize the credentials supported from the well-known.

can you please share content of /.well-known/openid-credential-issuer from esignet and also share the esignet version and mimoto version that we are consuming.

It will be helpful for us to debug and resolve

Thanks,
Vijay

Hi @vijay_kumar
please, find below details:

{"credential_issuer":"http://172.20.173.99:8088","credential_endpoint":"http://172.20.173.99:8088/v1/esignet/vci/credential","display":[{"name":"MDT Credential","locale":"en"}],"credentials_supported":{"MDTCredential":{"format":"ldp_vc","id":"MDTCredential","scope":"mdt_vc_ldp","cryptographic_binding_methods_supported":["did:jwk"],"cryptographic_suites_supported":["Ed25519Signature2020"],"proof_types_supported":["jwt"],"credential_definition":{"type":["VerifiableCredential","MDTCredential"],"credentialSubject":{"registration_id":{"display":[{"name":"Registration ID","locale":"en"}]},"name":{"display":[{"name":"Name","locale":"en"}]},"training_completed":{"display":[{"name":"Training Completed","locale":"en"}]},"completion_date":{"display":[{"name":"Completion Date","locale":"en"}]}}},"display":[{"name":"MDT Verifiable Credential","locale":"en","logo":{"url":"https://sunbird.org/images/sunbird-logo-new.png","alt_text":"a square logo of a Sunbird"},"background_color":"#FDFAF9","text_color":"#7C4616"}],"order":["registration_id","name","training_completed","completion_date"]}}}

esignet-version: 1.4.0
mimoto-version: 0.12.0