You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@knox.apache.org by lk_hadoop <lk...@163.com> on 2022/01/18 02:22:28 UTC
knoxsso 1.6: unable to find valid certification path to requested target
I'm using knox 1.6.0 ,trying to use knoxsso with pac4j-cas to proxy zepplin (0.10).
now when I access zepplin webui , it can be redirect to cas login page, after enter username and password, it will redirect to the pac4j.callbackUrl,
and then I got error:
HTTP ERROR 500 javax.servlet.ServletException: javax.servlet.ServletException: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
| URI: | /gateway/knoxsso/api/v1/websso |
| STATUS: | 500 |
| MESSAGE: | javax.servlet.ServletException: javax.servlet.ServletException: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target |
| SERVLET: | knoxsso-knox-gateway-servlet |
| CAUSED BY: | javax.servlet.ServletException: javax.servlet.ServletException: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target |
| CAUSED BY: | javax.servlet.ServletException: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target |
| CAUSED BY: | java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target |
| CAUSED BY: | javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target |
| CAUSED BY: | sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target |
| CAUSED BY: | sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target |
Re: knoxsso 1.6: unable to find valid certification path to requested target
Posted by larry mccay <lm...@apache.org>.
You should first make sure we know where the SSL issue is coming from - is
it Knox or Zeppelin.
Check the gateway-audit.log file to determine this by checking whether the
500 is coming from the dispatch of the request or not.
I suspect that it is.
This would indicate that the cert being presented by Zeppelin to Knox for
wire level protection is not trusted by Knox.
Perhaps there was a cert change for zeppelin and the Knox trust store was
not updated?
Perhaps there was an upgrade to a new Knox version that is configured for a
new truststore that doesn't have previously trusted certs from cacerts?
Hope this helps.
--larry
On Mon, Jan 17, 2022 at 9:22 PM lk_hadoop <lk...@163.com> wrote:
> I'm using knox 1.6.0 ,trying to use knoxsso with pac4j-cas to proxy
> zepplin (0.10).
> now when I access zepplin webui , it can be redirect to cas login page,
> after enter username and password, it will redirect to the
> pac4j.callbackUrl,
> and then I got error:
> HTTP ERROR 500 javax.servlet.ServletException:
> javax.servlet.ServletException: java.lang.RuntimeException:
> javax.net.ssl.SSLHandshakeException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
> URI: /gateway/knoxsso/api/v1/websso
> STATUS: 500
> MESSAGE: javax.servlet.ServletException: javax.servlet.ServletException:
> java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: PKIX path
> building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
> SERVLET: knoxsso-knox-gateway-servlet
> CAUSED BY: javax.servlet.ServletException:
> javax.servlet.ServletException: java.lang.RuntimeException:
> javax.net.ssl.SSLHandshakeException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
> CAUSED BY: javax.servlet.ServletException: java.lang.RuntimeException:
> javax.net.ssl.SSLHandshakeException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
> CAUSED BY: java.lang.RuntimeException:
> javax.net.ssl.SSLHandshakeException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target
> CAUSED BY: javax.net.ssl.SSLHandshakeException: PKIX path building
> failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
> to find valid certification path to requested target
> CAUSED BY: sun.security.validator.ValidatorException: PKIX path building
> failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
> to find valid certification path to requested target
> CAUSED BY: sun.security.provider.certpath.SunCertPathBuilderException:
> unable to find valid certification path to requested target
>
>
>
>
>
>
>