Thanks in advance.
I enabled SSL for DIIOP, and disable the common DIIOP TCP/IP port. And then, I tried to create a session in my application using the code below:
------------------------- start
String hostName = “192.168.66.101”;
String userName = “test”;
String password = "test”;
String arg = new String{“-ORBEnableSSLSecurity”};
Session s = NotesFactory.createSession(hostName, arg, userName, password);
------------------------- end
but I keep getting the error blow:
------------------------- start
NotesException: Session closed due to communications failure
at lotus.domino.cso.ORBCallback.make_error(Unknown Source)
at lotus.priv.CORBA.iiop.Generic.make_error(Unknown Source)
at lotus.priv.CORBA.portable.ObjectImpl._invoke(Unknown Source)
at lotus.domino.corba._IObjectServerStub.createSession(Unknown Source)
at lotus.domino.cso.Session.initSession(Unknown Source)
at lotus.domino.cso.Session.(Unknown Source)
at lotus.domino.cso.Session.createSession(Unknown Source)
at lotus.domino.NotesFactory.createSessionUP(Unknown Source)
at lotus.domino.NotesFactory.createSession(Unknown Source)
at GetSession.doGetSession_2(GetSession.java:62)
at TesterGetSession.main(TesterGetSession.java:13)
Caused by: org.omg.CORBA.COMM_FAILURE: java.io.IOException: Connection closed: Host: 127.0.0.1 Port: 63149 vmcid: 0x0 minor code: 1 completed: Maybe
at lotus.priv.CORBA.iiop.IIOPConnection.purge_calls(Unknown Source)
at lotus.priv.CORBA.iiop.ReaderThread.run(Unknown Source)
Caused by: java.io.IOException
at lotus.priv.CORBA.iiop.Message.readFully(Unknown Source)
at lotus.priv.CORBA.iiop.Message.createFromStream(Unknown Source)
at lotus.priv.CORBA.iiop.IIOPInputStream.prefill(Unknown Source)
at lotus.priv.CORBA.iiop.IIOPConnection.createInputStream(Unknown Source)
… 1 more
------------------------- end
I do not know what to do to this. I have set the path of the TrustedCerts.class as ClassPath. For Http, I did not enable SSL, and it could get the IOR properly.
Any suggestion on this issue is welcome! It is there something wrong with the cert?