Код: Выделить всё
Exception in route: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
< /code>
Многие из примеров, на котором я нашел, так что вращайтесь вокруг создания httpclientConfigurer и выполнения этого -< /p>
SSLContext ctx = SSLContext.getInstance("SSL");
ctx.init(null, new TrustManager[] { tm }, null);
SSLSocketFactory ssf = new SSLSocketFactory(ctx,
SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
ClientConnectionManager ccm = client.getConnectionManager();
SchemeRegistry sr = ccm.getSchemeRegistry();
sr.register(new Scheme("https4", 443, ssf));
Я попробовал настройку jvm sun.net.sl.sl.sl.sheckrecect = not stress>, но это не работает pless.>
Подробнее здесь: https://stackoverflow.com/questions/213 ... camel-2-12