Hi @mahammedtaheer
I’m trying to upload the partner certificate via this api “http://{baseUrl}/v1/keymanager/uploadPartnerCertificate”
here are the logs of keymanager:
{“@timestamp”:“2023-05-03T09:21:07.603+01:00”,“@version”:“1”,“message”:“pcSessionId - UploadPartnerCertificate - - Uploading Partner Certificate.”,“logger_name”:“io.mosip.kernel.partnercertservice.service.impl.PartnerCertificateManagerServiceImpl”,“thread_name”:“http-nio-8088-exec-6”,“level”:“INFO”,“level_value”:20000,“appName”:“kernel-keymanager-service”,“traceId”:“c0b035be17f2088e”,“spanExportable”:“false”,“req.requestURI”:“/v1/keymanager/uploadPartnerCertificate”,“X-Span-Export”:“false”,“req.method”:“POST”,“req.userAgent”:“insomnia/2023.2.0”,“spanId”:“c0b035be17f2088e”,“X-B3-SpanId”:“c0b035be17f2088e”,“X-B3-TraceId”:“c0b035be17f2088e”,“req.remoteHost”:“0:0:0:0:0:0:0:1”,“req.requestURL”:“http://dev.mosip.local/v1/keymanager/uploadPartnerCertificate”}
{“@timestamp”:“2023-05-03T09:21:07.605+01:00”,“@version”:“1”,“message”:“pcSessionId - UploadPartnerCertificate - - Partner certificate upload for domain: DEVICE”,“logger_name”:“io.mosip.kernel.partnercertservice.service.impl.PartnerCertificateManagerServiceImpl”,“thread_name”:“http-nio-8088-exec-6”,“level”:“INFO”,“level_value”:20000,“appName”:“kernel-keymanager-service”,“traceId”:“c0b035be17f2088e”,“spanExportable”:“false”,“req.requestURI”:“/v1/keymanager/uploadPartnerCertificate”,“X-Span-Export”:“false”,“req.method”:“POST”,“req.userAgent”:“insomnia/2023.2.0”,“spanId”:“c0b035be17f2088e”,“X-B3-SpanId”:“c0b035be17f2088e”,“X-B3-TraceId”:“c0b035be17f2088e”,“req.remoteHost”:“0:0:0:0:0:0:0:1”,“req.requestURL”:“http://dev.mosip.local/v1/keymanager/uploadPartnerCertificate”}
{“@timestamp”:“2023-05-03T09:21:07.614+01:00”,“@version”:“1”,“message”:“pcSessionId - CertTrustPathValidation - - Certificate Trust Path Validation for domain: DEVICE”,“logger_name”:“io.mosip.kernel.partnercertservice.service.impl.PartnerCertificateManagerServiceImpl”,“thread_name”:“http-nio-8088-exec-6”,“level”:“INFO”,“level_value”:20000,“appName”:“kernel-keymanager-service”,“traceId”:“c0b035be17f2088e”,“spanExportable”:“false”,“req.requestURI”:“/v1/keymanager/uploadPartnerCertificate”,“X-Span-Export”:“false”,“req.method”:“POST”,“req.userAgent”:“insomnia/2023.2.0”,“spanId”:“c0b035be17f2088e”,“X-B3-SpanId”:“c0b035be17f2088e”,“X-B3-TraceId”:“c0b035be17f2088e”,“req.remoteHost”:“0:0:0:0:0:0:0:1”,“req.requestURL”:“http://dev.mosip.local/v1/keymanager/uploadPartnerCertificate”}
{“@timestamp”:“2023-05-03T09:21:07.614+01:00”,“@version”:“1”,“message”:“pcSessionId - CertTrustPathValidation - - Total Number of ROOT Trust Found: 0”,“logger_name”:“io.mosip.kernel.partnercertservice.service.impl.PartnerCertificateManagerServiceImpl”,“thread_name”:“http-nio-8088-exec-6”,“level”:“INFO”,“level_value”:20000,“appName”:“kernel-keymanager-service”,“traceId”:“c0b035be17f2088e”,“spanExportable”:“false”,“req.requestURI”:“/v1/keymanager/uploadPartnerCertificate”,“X-Span-Export”:“false”,“req.method”:“POST”,“req.userAgent”:“insomnia/2023.2.0”,“spanId”:“c0b035be17f2088e”,“X-B3-SpanId”:“c0b035be17f2088e”,“X-B3-TraceId”:“c0b035be17f2088e”,“req.remoteHost”:“0:0:0:0:0:0:0:1”,“req.requestURL”:“http://dev.mosip.local/v1/keymanager/uploadPartnerCertificate”}
{“@timestamp”:“2023-05-03T09:21:07.614+01:00”,“@version”:“1”,“message”:“pcSessionId - CertTrustPathValidation - - Total Number of INTERMEDIATE Trust Found: 0”,“logger_name”:“io.mosip.kernel.partnercertservice.service.impl.PartnerCertificateManagerServiceImpl”,“thread_name”:“http-nio-8088-exec-6”,“level”:“INFO”,“level_value”:20000,“appName”:“kernel-keymanager-service”,“traceId”:“c0b035be17f2088e”,“spanExportable”:“false”,“req.requestURI”:“/v1/keymanager/uploadPartnerCertificate”,“X-Span-Export”:“false”,“req.method”:“POST”,“req.userAgent”:“insomnia/2023.2.0”,“spanId”:“c0b035be17f2088e”,“X-B3-SpanId”:“c0b035be17f2088e”,“X-B3-TraceId”:“c0b035be17f2088e”,“req.remoteHost”:“0:0:0:0:0:0:0:1”,“req.requestURL”:“http://dev.mosip.local/v1/keymanager/uploadPartnerCertificate”}
{“@timestamp”:“2023-05-03T09:21:07.615+01:00”,“@version”:“1”,“message”:“pcSessionId - UploadPartnerCertificate - - Partner Certificate not allowed to upload as root CA/Intermediate CAs are not found in trust cert path.”,“logger_name”:“io.mosip.kernel.partnercertservice.service.impl.PartnerCertificateManagerServiceImpl”,“thread_name”:“http-nio-8088-exec-6”,“level”:“ERROR”,“level_value”:40000,“appName”:“kernel-keymanager-service”,“traceId”:“c0b035be17f2088e”,“spanExportable”:“false”,“req.requestURI”:“/v1/keymanager/uploadPartnerCertificate”,“X-Span-Export”:“false”,“req.method”:“POST”,“req.userAgent”:“insomnia/2023.2.0”,“spanId”:“c0b035be17f2088e”,“X-B3-SpanId”:“c0b035be17f2088e”,“X-B3-TraceId”:“c0b035be17f2088e”,“req.remoteHost”:“0:0:0:0:0:0:0:1”,“req.requestURL”:“http://dev.mosip.local/v1/keymanager/uploadPartnerCertificate”}
{“@timestamp”:“2023-05-03T09:21:07.625+01:00”,“@version”:“1”,“message”:“Exception Root Cause: KER-PCM-006 → Root CA/Intermediate CA Certificates not found. “,“logger_name”:“io.mosip.kernel.core.exception.ExceptionUtils”,“thread_name”:“http-nio-8088-exec-6”,“level”:“ERROR”,“level_value”:40000,“appName”:“kernel-keymanager-service”,“traceId”:“c0b035be17f2088e”,“spanExportable”:“false”,“req.requestURI”:”/v1/keymanager/uploadPartnerCertificate”,“X-Span-Export”:“false”,“req.method”:“POST”,“req.userAgent”:“insomnia/2023.2.0”,“spanId”:“c0b035be17f2088e”,“X-B3-SpanId”:“c0b035be17f2088e”,“X-B3-TraceId”:“c0b035be17f2088e”,“req.remoteHost”:“0:0:0:0:0:0:0:1”,“req.requestURL”:“http://dev.mosip.local/v1/keymanager/uploadPartnerCertificate”}
but now I have this error: