I have done loads of research on this issue and tried everything I found to make it work to no avail.
I am developing a Java application on my Windows PC running tomcat 7.
I have used the following command to install the cert
keytool -import -alias srv03wpayco -keystore "C:\Program Files\Java\jdk1.8.0_60\jre\lib\security\cacerts" -file srv03.wpay.co.crt
And tried the same in the
C:\Program Files\Java\jdk1.8.0_60\lib\security\cacerts
and
C:\Program Files\Java\jre1.8.0_60\lib\security\cacerts
folders.
I have made sure the tomcat configured in MyEclipse is using the java path
C:\Program Files\Java\jdk1.8.0_60\jre
through Window -> Preferences -> Java -> Installed JREs
and added the Default VM arguments
-Djavax.net.ssl.keyStore="C:/Program Files/Java/jdk1.8.0_60/jre/lib/security/cacerts" -Djavax.net.ssl.trustStore="C:/Program Files/Java/jdk1.8.0_60/jre/lib/security/cacerts" -Djavax.net.ssl.keyStorePassword=changeit -Djavax.net.ssl.trustStorePassword=changeit
I am running tomcat from the myEclipse IDE and still get the exception
SunCertPathBuilderException: unable to find valid certification path to requested target
Can somebody please help? I am at my wit's end and have no clue what else to try.
Per the SSL Labs SSL scan report for srv03.wpay.co , you are not sending an intermediate certificate.
Can you give it a try after you add this intermediate cert? You can obtain it from https://whatsmychaincert.com/?srv03.wpay.co
Also, while you're at it, consider addressing the numerous vulnerabilities and weaknesses with the server's SSL configuration as reported by SSL Labs.
尝试keytool -keystore“ C:\\ Program Files \\ Java \\ jdk1.8.0_60 \\ jre \\ lib \\ security \\ cacerts” -importcert -alias srv03wpayco-文件srv03.wpay.co.crt
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.