Failed to communicate to CE

Joe Shevland jshevland at rowantreesoftware.com.au
Fri Jul 14 08:17:07 UTC 2006


Eric Anderson wrote:
> On 07/13/06 05:25, Joe Shevland wrote:
>> Eric Anderson wrote:
>>> Hi everyone,
>>>
>>> I'm new to this list, so please let me know what extra details are 
>>> needed.
>>>
>>> One application I have, gives me this error:
>>>
>>> Failed to communicate to CE
>>> 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
>>>
>>> Is this a bug in the app, or FreeBSD java?  If I run this program on 
>>> linux, and remote display it to FreeBSD, it works fine.
>>>
>>> I'm running against the new diablo-jre (package, not port) on 
>>> FreeBSD 6-STABLE.
>>>
>>> Thanks,
>>> Eric
>>>
>>>
>>>
>>
>> Fairly sure thats the message you get when you don't have the 
>> certificate of the server (or its CA) in your trusted keystore (or 
>> perhaps in this case the default keystore Java is using - cacerts 
>> perhaps). Client apps I've written that need to use SSL with a 
>> server's self-signed certificate, I'd export the servers certificate 
>> and import it into a keystore on the client, then set 
>> -Djavax.net..trustStore=<file_loc>.
>
> Found it!  (Thanks for the help)
>
> Here's what it was:
> /usr/local/diablo-jre1.5.0/lib/security/
>
> I used the directory from a linux machine, and it works like magic.
>
> Thanks..
>
> Eric

Just posting back to the list in case the JRE needs an updated cacerts 
file. That may not be the case if it was a custom certificate.

Cheers
Joe




More information about the freebsd-java mailing list