Java: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

前端 未结 23 1669
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-22 04:44

I have a class that will download a file from a https server. When I run it, it returns a lot of errors. It seems that I have a problem with my certificate

23条回答
  •  南旧
    南旧 (楼主)
    2020-11-22 05:13

    Make sure that the https://176.66.3.69:6443/ have a valid certificate. you can check it via browser firstly if it works in browser it will work in java.

    that is working for me

提交回复
热议问题