Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Propagation of Cert Chain through SSLHandshakeException

2 views
Skip to first unread message

Sunil McKay

unread,
Feb 19, 2002, 11:50:16 PM2/19/02
to
I've got my own MySSLSocketFactory() which installs my custom
MyTrustManager. MyTrustManager.checkServerTrusted()
can detect a CertificateException, and even print out
the X509Certificate chain. But when the CertificateException
is thrown, my application has no way to access the X509Certificate
chain.

MyTrustManager has no way to determine which socket is causing
the request.

My application has no way to obtain the certificate chain information
associated with a socket.

My application gets this:

javax.mail.MessagingException: Couldn't find trusted certificate;
nested exception is:
javax.net.ssl.SSLHandshakeException: Couldn't find trusted certificate
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:298)
at javax.mail.Service.connect(Service.java:227)
at javax.mail.Service.connect(Service.java:131)

Thanks for any help.


0 new messages