Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Security > Prblem with Gla...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 1747 of 1792
Post > Topic >>

Prblem with Glassfish and SSL: "unable to find valid certification

by thor <tomek.matynia@[EMAIL PROTECTED] > Dec 17, 2007 at 03:43 AM

Hello,

  We have the follwoing problem with configuring trusted certificates
on Glassfsh (v2 b58g). What we want to do is to invoke web-service via
https. In testing environment we have two hosts with WinXPand
glassfish instances (together with their default generated
certificates). One is hosting web-service, and the other has a client.
After adding server's certificate to config/cacerts.jks on client's
glassfish instance, invoking web-service works. In production
environment, we have a Red Hat machine with the same Glassfish build.
The network is isolated (we can't access CA). We can get the
certificate of the server with a web browser or using InstallCert
(http://blogs.sun.com/andreas/entry/no_more_unable_to_find).
This
time, after adding certificate to config/cacerts.jks we get an
exception, like it wasn't in cacerts.jks.

The stacktrace's exceptions are:
com.sun.xml.ws.client.ClientTrans****tException: HTTP trans****t error:
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

We did modified InstallCert to make it to write to the right keystore
(cacerts.jks), which we can check with keytool -list. We tried also
adding certificate with ketool itself, but it neihter worked.

Thanks for help in advance.

Thomas
 




 2 Posts in Topic:
Prblem with Glassfish and SSL: "unable to find valid certificati
thor <tomek.matynia@[E  2007-12-17 03:43:34 
Re: Prblem with Glassfish and SSL: "unable to find valid
thor <tomek.matynia@[E  2007-12-22 09:14:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 18:02:02 CDT 2008.