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

前端 未结 23 1120
佛祖请我去吃肉
佛祖请我去吃肉 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:03

    This can also be caused by using GoDaddy certs with Java 7 that are signed using SHA2.

    Chrome and all other browsers are starting to deprecate SSL certs that are signed using SHA1, as it's not as secure.

    More info on the issue can be found here, as well as how to resolve it on your server if you need to now.

提交回复
热议问题