"Hi all, I am doing a POC on calling a plugin from another plugin through a rest api and passing in the credentials through basic auth.
Essentially its a call like this:
where YWRtaW46YWRtaW4= decodes to admin:admin I am getting this error:
{"error":{"root_cause":[{"type":"s_s_l_handshake_exception","reason":"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target"}],"type":"s_s_l_handshake_exception","reason":"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target","caused_by":{"type":"validator_exception","reason":"PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target","caused_by":{"type":"sun_cert_path_builder_exception","reason":"unable to find valid certification path to requested target"}}},"status":500}
Do you have any ways around that or exactly what else I need to fix this error?For reference, I am using the docker distribution for OS 2.11.0"
That call works. I am trying to pass the credentials through the headers only. My initial command worked on a different cluster, but not on the docker cluster, so the cert files generated for the docker might just be out of date since the docker image was generated a while ago.
Actually the real issue is where I am trying to call another plugin from one of the plugins (I modified the alerting plugin’s get monitor api to call a notification api). There I pass the Authorization: Basic YWRtaW46YWRtaW4= in the header and I get the exception shown above.