Unsolved

This post is more than 5 years old

281 Posts

3247

May 27th, 2010 15:00

Using SSL with Java

If you attempt to connect to accesspoint.atmosonline.com using the Java wrapper, you will see the follwing error:

javax.net.ssl.SSLHndshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
        at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
        at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
        at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at InstallCert.main(InstallCert.java:87)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
        at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
        at sun.security.validator.Validator.validate(Unknown Source)
        at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(Unknown Source)
        at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
        at InstallCert$SavingTrustManager.checkServerTrusted(InstallCert.java:182)
        ... 9 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
        at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
        at java.security.cert.CertPathBuilder.build(Unknown Source)
        ... 15 more

This is due to the fact that Java does not ship with the root CA certificate used by atmosonline.  I have added instructions to the googlecode site detailing how to install the required certificate:

http://code.google.com/p/atmos-java/wiki/SSL

1 Rookie

 • 

6 Posts

September 23rd, 2010 13:00

Does this needs to be done on client machine only OR it has to be done on server where the application is installed OR they both need to have this one?

281 Posts

September 23rd, 2010 18:00

I has to be done where ever the client code is running.  So, likely your development machine and your production server.

Note that you only need to do this if you see the SSL error in the first post.

1 Rookie

 • 

6 Posts

September 23rd, 2010 19:00

so lets say if I have MWS application running on JBOSS installed on torlemon.dctmlabs.com and I accessing this from browser of my local machine then I have to do this on torlemon and my client machine both or just my client machine? still confused a little as it seems I need to only do this on my local machine where I am accessing MWS using my IE browser.

I am installing this because I am getting similar error what you mentioned while doing content transfer functions like uploading a jpeg to my repository residing on a CS.

No Events found!

Top