Reputation: 430
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is 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
Receiving following exception while triggering the SSL certified URL. Tried to fix the error by using following command
/opt/jdk1.8.0_51/jre/bin/keytool -import –alias -genkey –keystore “/opt/jdk1.8.0_51/jre/lib/security/cacerts” -file /apps/binlistlookup/src/main/resources/binlistnet.crt
The issue is still percieving in centos 7 system.
Upvotes: 0
Views: 1381
Reputation: 430
1 . keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass -validity 360 -keysize 2048
Some request will be shown asking your general datas. Enter all of them.
2 . keytool -v -list -keystore keystore.jks
3 . keytool -exportcert -rfc -alias selfsigned -keystore keystore.jks -file selfsigned.crt
4 . keytool -printcert -file selfsigned.crt
Your cerfication file is ready.
Upvotes: 0