当前位置: 动力学知识库 > 问答 > 编程问答 >

java - Ubuntu 14 and their openjdk-8-jdk (by apt-get)

问题描述:

Bear my newbeeness,

We got Ubuntu 14 installed and openjdk-8-jdk (by apt-get).

I think it went well.But when my java app tried to make a call to a https,it throws a

: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I have verified that /etc/ssl/certs/java/cacerts exists

However - when I checked - /usr/lib/jvm/java-8-oracle-amd64/jre/lib/security for cacerts file,it has a cacerts but does not have a symlink to /etc/ssl/certs/java/cacerts.

/usr/lib/jvm/java-8-oracle-amd64/jre/lib/security$ ls -al

total 140

drwxr-xr-x 2 uucp 143 4096 Mar 4 2014 .

drwxr-xr-x 15 uucp 143 4096 Mar 4 2014 ..

-rw-r--r-- 1 uucp 143 2770 Mar 4 2014 blacklist

-rw-r--r-- 1 uucp 143 1188 Mar 4 2014 blacklisted.certs

-rw-r--r-- 1 uucp 143 82586 Mar 4 2014 cacerts

-rw-r--r-- 1 uucp 143 2466 Mar 4 2014 java.policy

Can you help me out,as what could have missed the symlink and is there anything huge I am missing.

分享给朋友:
您可能感兴趣的文章:
随机阅读: