Thursday, 15 March 2012

java - Exception while connecting to mail server -



java - Exception while connecting to mail server -

i got next exception while connecting mail service server ibm was.

javax.mail.messagingexception: not convert socket tls; nested exception is: java.net.socketexception: java.security.privilegedactionexception: java.io.filenotfoundexception: d:\program files (x86)\ibm\websphere\appserver\jre\lib\security\cacerts (the scheme cannot find path specified.)

my question is:

what certificate should import? mail service server's certificate needs imported was? should inquire mail service server admin share certificate?

once figure out certificate, plan follow these instructions import it: how connect secure website using ssl in java pkcs12 file?

that link not right way utilize mail service sessions in was. check websphere 7 javax.mail.messagingexception: sslsocketfactory null.

try utilize default ssl websphere configuration , mail service session resource. need add together mail service server certificate trust store (nodedeaulttruststore or celldefaulttruststore depending whether utilize standalone or network deployment version).

it should possible mail service server cert using browser, when connect using https://mailserver:port/ should give certificate save locally , add together truststore. if have problems contact mail service server admin.

privilegedactionexception suggest may have java 2 security enabled. check if enabled , if need it.

java email ssl websphere exchange-server

No comments:

Post a Comment