From 7d9ac16b9b4f6094ae7c666889dc6a9acc8ad682 Mon Sep 17 00:00:00 2001 From: csviri Date: Wed, 9 Nov 2022 16:34:16 +0100 Subject: [PATCH 1/2] docs: faq for k3d error on docker desctop on mac --- docs/documentation/faq.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/documentation/faq.md b/docs/documentation/faq.md index d05d21e1dc..73364d21e1 100644 --- a/docs/documentation/faq.md +++ b/docs/documentation/faq.md @@ -72,3 +72,25 @@ is `true` (`false` by default). To disable, set it to `false` at [Operator-level ```java ConfigurationServiceProvider.overrideCurrent(o -> o.checkingCRDAndValidateLocalModel(false)); ``` + + +### Q: How to fix `sun.security.provider.certpath.SunCertPathBuilderException` on Docker Desktop and k3d + +It's a common issue when using k3d and the fabric8 client tries to connect to the cluster an exception is thrown: + +``` +Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target + at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131) + at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:352) + at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:295) +``` + +The cause is that fabric8 kubernetes client does not handle elliptical curve encryption by default. To fix this, add +the following dependency on the classpath: + +```xml + + org.bouncycastle + bcpkix-jdk15on + +``` \ No newline at end of file From 32db99787ef624c09ed0d0b6f06f8ea581144568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20M=C3=A9sz=C3=A1ros?= Date: Wed, 9 Nov 2022 17:01:17 +0100 Subject: [PATCH 2/2] Update docs/documentation/faq.md Co-authored-by: Chris Laprun --- docs/documentation/faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/documentation/faq.md b/docs/documentation/faq.md index 73364d21e1..4990266354 100644 --- a/docs/documentation/faq.md +++ b/docs/documentation/faq.md @@ -74,7 +74,7 @@ ConfigurationServiceProvider.overrideCurrent(o -> o.checkingCRDAndValidateLocalM ``` -### Q: How to fix `sun.security.provider.certpath.SunCertPathBuilderException` on Docker Desktop and k3d +### Q: How to fix `sun.security.provider.certpath.SunCertPathBuilderException` on Rancher Desktop and k3d/k3s Kubernetes It's a common issue when using k3d and the fabric8 client tries to connect to the cluster an exception is thrown: