• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Certificatioon error

 
ravindra patil
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI ,

I am getting following error javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path validation failed:
java.security.cert.CertPathValidatorExceptions ignature check failed

at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1623)

at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:198)


is anything wrong with certificate
 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ravindra,

Some additional details like your setup, code snippets, context would help us to understand the problem.
 
Prakash Dewangan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ravindra

javax.net.ssl.SSLHandshakeException: is the exception when you call other HTTPS url (also it can be webservice url).

Please get the certificate from the provider of the URL and import it to your application.

-Prakash
 
ravindra patil
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,no when i am logging into the application i am importing the certificate , but while executing
following code

URL url = new URL(clientSideURL + "/" + jspName + "?" + jspParams);
HttpURLConnection uc = (HttpURLConnection) url.openConnection();
uc.addRequestProperty("Accept-Language",c.getSession().getLanguage());
uc.setDoOutput(false);
if (cookieString != null) {
uc.setRequestProperty("Cookie", cookieString);
}
InputStream in = uc.getInputStream();
i am getting this issue any solution to this
 
Prakash Dewangan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you please explain little how you are importing the certificate?
 
ravindra patil
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
invoking my web app url using https at that time got certification alert i followed step like add exception get certificate
well have you configure ssl in eclipse IDE
 
Prakash Dewangan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well... you will get the certificate from the Server admin..

You need to import it, and create keystore and truststore, this will be used with HTTP client.

I wanted to know the code or the configuration. can you please paste that here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic