International-Data-Spaces-Association / IDS-testbed

Apache License 2.0
24 stars 32 forks source link

Update cert.py #87

Closed ids-worker closed 1 year ago

ids-worker commented 2 years ago

"Subject Alternative Name" and "IP Address".

jfernandezsqs commented 2 years ago

Hello, I have implemented both pull requests #86 and #87. I attach here the certificates created for the CA, SubCA and Cert (testbed1 for DSCA, testbed2 for DSCB and testbed4 for DAPS). Certificates.zip It is actually working if I introduce testbed1.crt, testbed2.crt and testbed4.crt at the truststore.p12 (these are DSCA, DSCB and Omejdn). However, this is not the intended behaviour because the truststore.p12 should only contain the CA and SubCA certificates.

I have deleted the certificates from the truststore.p12 and I have only introduced ReferenceTestbedCA.crt and ReferenceTestbedSubCA.crt into the truststore.p12 for both DSCA and DSCB. With this configuration it is not working. The error message obtained from the DSCB when trying to obtain the self-description of DSCA is the following:

testbed2         | 2022-07-28T12:11:35,942 [https-jsse-nio-8081-exec-6] INFO - Successfully received DAT from DAPS.
testbed2         | 2022-07-28T12:11:36,026 [https-jsse-nio-8081-exec-6] INFO - Using cached DAPS DAT. [expiration=(2022-07-28T13:11:35.000+0000)]
testbed2         | 2022-07-28T12:11:36,111 [https-jsse-nio-8081-exec-6] DEBUG - Built request message. [header=({\n  "@context" : {\n    "ids" : "https://w3id.org/idsa/core/",\n    "idsc" : "https://w3id.org/idsa/code/"\n  },\n  "@type" : "ids:DescriptionRequestMessage",\n  "@id" : "https://w3id.org/idsa/autogen/descriptionRequestMessage/e9287d7d-2742-4c06-af08-c1890b1ed798",\n  "ids:modelVersion" : "4.2.7",\n  "ids:issued" : {\n    "@value" : "2022-07-28T12:11:36.042Z",\n    "@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp"\n  },\n  "ids:issuerConnector" : {\n    "@id" : "https://connector_B"\n  },\n  "ids:recipientConnector" : [ {\n    "@id" : "https://connectora:8080/api/ids/data"\n  } ],\n  "ids:senderAgent" : {\n    "@id" : "https://connector_B"\n  },\n  "ids:securityToken" : {\n    "@type" : "ids:DynamicAttributeToken",\n    "@id" : "https://w3id.org/idsa/autogen/dynamicAttributeToken/f37d31ef-d135-4be7-bcdc-df94390ec27d",\n    "ids:tokenValue" : "eyJ0eXAiOiJhdCtqd3QiLCJraWQiOiIzYjVmNzhlYzBmODg5MTQwN2NjODI3OWJmOTE3Yjg5MDMyYzkxYzQ0MTNhN2IwMTUzNTdhZDAxZDAyNTY3MjEwIiwiYWxnIjoiUlMyNTYifQ.eyJzY29wZSI6Imlkc2M6SURTX0NPTk5FQ1RPUl9BVFRSSUJVVEVTX0FMTCIsImF1ZCI6WyJpZHNjOklEU19DT05ORUNUT1JTX0FMTCJdLCJpc3MiOiJodHRwOi8vb21lamRuL2F1dGgiLCJzdWIiOiIyRjpEMDo4NjozMzpGNjo1OTo2RDo1ODpENjpDODpEMjo0Mzo0MTpGMjo0RDpDMjo5NDo4QzpBNDoyRjprZXlpZDo3Mzo2QjoxQzoxMzpCNzpFMDo5NTowODo1NTo5Mjo5NDpCNjpFMjo2MDo2MTowQjo3Mzo4Mjo2MjowQSIsIm5iZiI6MTY1OTAxMDI5NSwiaWF0IjoxNjU5MDEwMjk1LCJqdGkiOiI3M2M2MTI1NC1jN2I0LTQ0YTMtYjM5NS1lZjE1MzAwMGI1ZTQiLCJleHAiOjE2NTkwMTM4OTUsImNsaWVudF9pZCI6IjJGOkQwOjg2OjMzOkY2OjU5OjZEOjU4OkQ2OkM4OkQyOjQzOjQxOkYyOjREOkMyOjk0OjhDOkE0OjJGOmtleWlkOjczOjZCOjFDOjEzOkI3OkUwOjk1OjA4OjU1OjkyOjk0OkI2OkUyOjYwOjYxOjBCOjczOjgyOjYyOjBBIiwic2VjdXJpdHlQcm9maWxlIjoiaWRzYzpCQVNFX1NFQ1VSSVRZX1BST0ZJTEUiLCJyZWZlcnJpbmdDb25uZWN0b3IiOiJodHRwOi8vdGVzdGJlZDIuZGVtbyIsIkB0eXBlIjoiaWRzOkRhdFBheWxvYWQiLCJAY29udGV4dCI6Imh0dHBzOi8vdzNpZC5vcmcvaWRzYS9jb250ZXh0cy9jb250ZXh0Lmpzb25sZCIsInRyYW5zcG9ydENlcnRzU2hhMjU2IjoiMWIwOWYwMzZkMjBjMzJjZGY4NGFhYjVlMmFmMDZiNjM3MGQwNzcwMWJiY2RmZjBkOWI5ODZlODk1ZWQyN2YxYiJ9.W6esNMGr57qaoPPFSvh-v-K57RDKNxe3V-f8OKnwF0myazxsim6WpWjghQI6ouJUePBHVY24_m0sf3hqIW1DesuSBfmkvYmAKZmDAfbwEcwLUp8103pRIWMDgX-QcJ0vFFUIntTZ6DFEs3jn9JY6WUQ250UPNTenQ-V2gi8cJujfwEmiRrRd40goeKWiEkfZZCGg_dyru3lt3hN6t8tOc4W-o_vIywib5kPjVT8mieyGDUlf0n36bIAYhAezPa6JjsZhvUOG9B-3JydbVXc8KBozmKCotMFTN7X5czYGVKIXgvH22yX5EjqmLN0CZjTacEdaXZI0V1nd0XPkVydKnA",\n    "ids:tokenFormat" : {\n      "@id" : "https://w3id.org/idsa/code/JWT"\n    }\n  },\n  "ids:depth" : "10"\n}), payload=()]
testbed2         | 2022-07-28T12:11:36,119 [https-jsse-nio-8081-exec-6] INFO - Sending request to https://connectora:8080/api/ids/data ...
testbed2         | 2022-07-28T12:11:36,258 [https-jsse-nio-8081-exec-6] WARN - The recipient's certificate authority is not trusted. [exception=(PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target)]
testbed2         | 2022-07-28T12:11:36,258 [https-jsse-nio-8081-exec-6] DEBUG - Message handling or processing failed. [exception=(The recipient's certificate authority is not trusted.)]
testbed2         | io.dataspaceconnector.common.exception.MessageException: The recipient's certificate authority is not trusted.
testbed2         |  at io.dataspaceconnector.service.message.builder.type.base.AbstractMessageService.send(AbstractMessageService.java:156) ~[classes/:7.1.0]
testbed2         |  at io.dataspaceconnector.service.message.builder.type.DescriptionRequestService.sendMessage(DescriptionRequestService.java:94) ~[classes/:7.1.0]
testbed2         |  at io.dataspaceconnector.controller.message.ids.DescriptionRequestMessageController.sendMessage(DescriptionRequestMessageController.java:132) ~[classes/:7.1.0]
testbed2         |  at io.dataspaceconnector.controller.message.ids.DescriptionRequestMessageController$$FastClassBySpringCGLIB$$ba843bd6.invoke(<generated>) ~[classes/:7.1.0]
testbed2         |  at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783) ~[spring-aop-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753) ~[spring-aop-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:61) ~[spring-security-core-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) ~[spring-aop-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753) ~[spring-aop-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:698) ~[spring-aop-5.3.18.jar:5.3.18]
testbed2         |  at io.dataspaceconnector.controller.message.ids.DescriptionRequestMessageController$$EnhancerBySpringCGLIB$$f730074a.sendMessage(<generated>) ~[classes/:7.1.0]
testbed2         |  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
testbed2         |  at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
testbed2         |  at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
testbed2         |  at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
testbed2         |  at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) ~[spring-web-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) ~[spring-web-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117) ~[spring-webmvc-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:895) ~[spring-webmvc-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:808) ~[spring-webmvc-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) ~[spring-webmvc-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1067) ~[spring-webmvc-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963) ~[spring-webmvc-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) ~[spring-webmvc-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) ~[spring-webmvc-5.3.18.jar:5.3.18]
testbed2         |  at javax.servlet.http.HttpServlet.service(HttpServlet.java:681) ~[tomcat-embed-core-9.0.60.jar:4.0.FR]
testbed2         |  at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) ~[spring-webmvc-5.3.18.jar:5.3.18]
testbed2         |  at javax.servlet.http.HttpServlet.service(HttpServlet.java:764) ~[tomcat-embed-core-9.0.60.jar:4.0.FR]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) ~[tomcat-embed-websocket-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:327) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:115) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:81) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:122) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:116) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:126) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:81) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:109) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:149) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:181) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:103) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:89) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:110) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:55) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:336) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:211) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:183) ~[spring-security-web-5.6.2.jar:5.6.2]
testbed2         |  at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354) ~[spring-web-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267) ~[spring-web-5.3.18.jar:5.3.18]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) ~[spring-web-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) ~[spring-web-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:96) ~[spring-boot-actuator-2.6.6.jar:2.6.6]
testbed2         |  at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) ~[spring-web-5.3.18.jar:5.3.18]
testbed2         |  at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117) ~[spring-web-5.3.18.jar:5.3.18]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at io.opentracing.contrib.web.servlet.filter.TracingFilter.doFilter(TracingFilter.java:189) ~[opentracing-web-servlet-filter-0.4.0.jar:?]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:360) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:399) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:889) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1743) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.60.jar:9.0.60]
testbed2         |  at java.lang.Thread.run(Unknown Source) ~[?:?]
testbed2         | Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
testbed2         |  at sun.security.ssl.Alert.createSSLException(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.TransportContext.fatal(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.TransportContext.fatal(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.TransportContext.fatal(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLHandshake.consume(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.HandshakeContext.dispatch(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.HandshakeContext.dispatch(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.TransportContext.dispatch(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLTransport.decode(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLSocketImpl.decode(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:?]
testbed2         |  at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.kt:379) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.kt:337) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:209) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at de.fraunhofer.ids.messaging.core.config.ClientProvider$EncodingInterceptor.intercept(ClientProvider.java:484) ~[core-6.1.0.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154) ~[okhttp-4.9.3.jar:?]
testbed2         |  at de.fraunhofer.ids.messaging.protocol.http.IdsHttpService.sendRequest(IdsHttpService.java:396) ~[messaging-6.1.0.jar:?]
testbed2         |  at de.fraunhofer.ids.messaging.protocol.http.IdsHttpService.send(IdsHttpService.java:237) ~[messaging-6.1.0.jar:?]
testbed2         |  at de.fraunhofer.ids.messaging.protocol.http.IdsHttpService.sendAndCheckDat(IdsHttpService.java:499) ~[messaging-6.1.0.jar:?]
testbed2         |  at io.dataspaceconnector.service.message.builder.type.base.AbstractMessageService.send(AbstractMessageService.java:126) ~[classes/:7.1.0]
testbed2         |  ... 107 more
testbed2         | Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
testbed2         |  at sun.security.validator.PKIXValidator.doBuild(Unknown Source) ~[?:?]
testbed2         |  at sun.security.validator.PKIXValidator.engineValidate(Unknown Source) ~[?:?]
testbed2         |  at sun.security.validator.Validator.validate(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source) ~[?:?]
testbed2         |  at de.fraunhofer.ids.messaging.core.config.ssl.truststore.TrustStoreManager$1.checkServerTrusted(TrustStoreManager.java:98) ~[core-6.1.0.jar:?]
testbed2         |  at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLHandshake.consume(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.HandshakeContext.dispatch(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.HandshakeContext.dispatch(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.TransportContext.dispatch(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLTransport.decode(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLSocketImpl.decode(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:?]
testbed2         |  at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.kt:379) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.kt:337) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:209) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at de.fraunhofer.ids.messaging.core.config.ClientProvider$EncodingInterceptor.intercept(ClientProvider.java:484) ~[core-6.1.0.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154) ~[okhttp-4.9.3.jar:?]
testbed2         |  at de.fraunhofer.ids.messaging.protocol.http.IdsHttpService.sendRequest(IdsHttpService.java:396) ~[messaging-6.1.0.jar:?]
testbed2         |  at de.fraunhofer.ids.messaging.protocol.http.IdsHttpService.send(IdsHttpService.java:237) ~[messaging-6.1.0.jar:?]
testbed2         |  at de.fraunhofer.ids.messaging.protocol.http.IdsHttpService.sendAndCheckDat(IdsHttpService.java:499) ~[messaging-6.1.0.jar:?]
testbed2         |  at io.dataspaceconnector.service.message.builder.type.base.AbstractMessageService.send(AbstractMessageService.java:126) ~[classes/:7.1.0]
testbed2         |  ... 107 more
testbed2         | Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
testbed2         |  at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source) ~[?:?]
testbed2         |  at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source) ~[?:?]
testbed2         |  at java.security.cert.CertPathBuilder.build(Unknown Source) ~[?:?]
testbed2         |  at sun.security.validator.PKIXValidator.doBuild(Unknown Source) ~[?:?]
testbed2         |  at sun.security.validator.PKIXValidator.engineValidate(Unknown Source) ~[?:?]
testbed2         |  at sun.security.validator.Validator.validate(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source) ~[?:?]
testbed2         |  at de.fraunhofer.ids.messaging.core.config.ssl.truststore.TrustStoreManager$1.checkServerTrusted(TrustStoreManager.java:98) ~[core-6.1.0.jar:?]
testbed2         |  at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLHandshake.consume(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.HandshakeContext.dispatch(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.HandshakeContext.dispatch(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.TransportContext.dispatch(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLTransport.decode(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLSocketImpl.decode(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:?]
testbed2         |  at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source) ~[?:?]
testbed2         |  at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.kt:379) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.kt:337) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:209) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at de.fraunhofer.ids.messaging.core.config.ClientProvider$EncodingInterceptor.intercept(ClientProvider.java:484) ~[core-6.1.0.jar:?]
testbed2         |  at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201) ~[okhttp-4.9.3.jar:?]
testbed2         |  at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154) ~[okhttp-4.9.3.jar:?]
testbed2         |  at de.fraunhofer.ids.messaging.protocol.http.IdsHttpService.sendRequest(IdsHttpService.java:396) ~[messaging-6.1.0.jar:?]
testbed2         |  at de.fraunhofer.ids.messaging.protocol.http.IdsHttpService.send(IdsHttpService.java:237) ~[messaging-6.1.0.jar:?]
testbed2         |  at de.fraunhofer.ids.messaging.protocol.http.IdsHttpService.sendAndCheckDat(IdsHttpService.java:499) ~[messaging-6.1.0.jar:?]
testbed2         |  at io.dataspaceconnector.service.message.builder.type.base.AbstractMessageService.send(AbstractMessageService.java:126) ~[classes/:7.1.0]
testbed2         |  ... 107 more
jfernandezsqs commented 1 year ago

Included in Pull Request #103