× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




On Tue, 11 Nov 2003, Wills, Mike N. (TC) wrote:
>
> I am trying to connect to an internal SSL site with java and keep on getting
> this error:
> com.taylor.docgate.DocgateException: DocgateDAOAImpl.Login.IOException:
> javax.net.ssl.SSLHandshakeException: Certificate is not signed by a trusted
> certificate authority.

Where are you running this Java?   If this is on the iSeries, I believe
that it uses the Digital Certificate Manager to assign certs, set up who
is trusted, etc.

If this is on some other sort of system, then that advice certainly
wouldn't apply. :)


> How do get java to accept our SSL site as a trusted site? We do have a "root
> certificate" for the company.

Not sure what that means.   Every SSL certificate is assigned by a
certificate authority ("CA".)  You can't generate a cert without doing
that...   if your certificate was generated by VeriSign or a similar
service, then they used their own CA certificate, and VeriSign and similar
companies CA certs are usually already installed and trusted.

But any rate, whether or not a certificate is trusted depends on whether
your system trusts the CA.  So, install the CA certificate that you want
trusted into your Digital Cert Mgr.  Then look up that application, and
tell it to trust that CA.


> What we are beginning to think is that java is either not using the right
> cacerts file or it doesn't like the new entry in the file. Can anyone at all
> help me out?

I'm not sure what the 'cacerts' file is, since I always install
certificates using the Digital Cert Mgr, I have no idea what the files are
called.   Or, are we talking about a non-iSeries installation?

I've done SSL in C in both Windows and Unix using OpenSSL, and I've done
SSL on the iSeries in RPG using both GSKit and the SSL_xxx APIs (both of
which use the Digital Cert Mgr) I didn't answer your question on the
Java400 list because I've never done it in Java.   If there's any special
considerations for doing it with Java, I don't know what they are.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.