Yes, i followed the steps in
http://tomcat.apache.org/tomcat-4.1-doc/ssl-howto.html
I guess it's self signed certificate, right? i'm really not goot at it.
is there any way i can verify if it's self-signed?
How to add it in the trusted certificates store in the client side, by
the way i'm testing the server/client on the same machine.
Thanks for you help.
James.
Do you use a self signed certificate for james? If yes have you added
it in the trusted certificates store of the client's java?
It's possible that your client works with google because google's
certificate is issued by a trusted authority.
On 24.04.2007, at 17:03, maomaode wrote:
Hi,
I've setup james successfully with SSL
> James Mail Server 2.3.0
Remote Manager Service started ssl:4555
POP3 Service started ssl:995
POP3 Service started plain:110
SMTP Service started ssl:465
SMTP Service started plain:25
NNTP Service started plain:119
FetchMail Disabled
I write a simple client code with javamail to send mail using the new
created smtp server with tls, but failed with the following exceptions:
(BTW: I tried gmail with the my javamail client, it's OK, so i guess
something wrong in the james config. but i dont' know the reason.)
[junit] javax.mail.MessagingException: Exception reading response;
[junit] nested exception is:
[junit] javax.net.ssl.SSLHandshakeException:
sun.security.validator.Vali
datorException: PKIX path building failed:
sun.security.provider.certpath.SunCer
tPathBuilderException: unable to find valid certification path to
requested targ
et
[junit] at
com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransp
ort.java:1462)
[junit] at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java
:1260)
[junit] at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport
java:370)
[junit] at javax.mail.Service.connect(Service.java:275)
[junit] at
com.bokeland.imports.common.mail.Mailer.send(Mailer.java:52)
[junit] at
com.bokeland.imports.common.mail.MailerTest.testJames(MailerT
est.java:149)
[junit] Caused by: javax.net.ssl.SSLHandshakeException:
sun.security.validat
or.ValidatorException: PKIX path building failed:
sun.security.provider.certpath
SunCertPathBuilderException: unable to find valid certification path
to request
ed target
[junit] at
com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.ja
va:174)
[junit] at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImp
l.java:1520)
[junit] at
com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.ja
va:182)
[junit] at
com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.ja
James.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]