The error "path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target" was seen when running the command to scan and upload results.
Action plan
- Check whether the command is being run behind a firewall. If so make the necessary configuration in the firewall.
- Check whether it is not a configuration issue that may arise when Java attempts to connect to another application over SSL.
- If using a proxy check whether the proxy parameters are passed when running the docker container. Results are uploaded to casthighlight portal using https. If your environment requires a proxy for https connections, pass the JAVA_OPTS environment to the container with the -e docker option configured with your proxyHost and proxyPort. e.g: -e JAVA_OPTS="-Dhttps.proxyHost=http-proxy.mycompany.com -Dhttps.proxyPort=443"
Also please refer How to use our Docker image
To know about the usage of proxy settings etc https://hub.docker.com/r/casthighlight/hl-agent-cli
Ticket Number
25966, 47904
Related Articles
CAST HIGHLIGHT - CLI - Docker - Certificate error - certificate signed by unknown authority
Additional Resources
CAST Highlight Troubleshooting Guides
CAST Highlight Product Documentation
Comments