RE: How to use EventServer and SSL at the same time?
"Luo, Qiang \(Joe\)" <[email protected]> Fri, 1 Dec 2006 15:50:50 -0000
| Newsgroups | gmane.comp.corba.orbacus |
|---|---|
| Message-ID | <[email protected]> |
Hello, Andrzej > how to configure event service to use it with SSL? The Orbacus Event Service is not SSL enabled by default. Since the source code needs to be modified in order to add the SSL functionality. Basically, you will need to put JFSSL part of code into right place in the com.ooc.CosEvent.Server.java file just explained in our PartII-FreeSSL chapter of the Orbacus Manual. As explained in our manual, for a client, you will need to resolve initial reference of "FSSLContextManager" first. Then create the client certificate chain, the client context and finally set the context as default one for all object references. In case of a server, you will need to obtain a reference to the FSSL Context Manager similarly as the client side. Then create the server certificate chain, the server context and finally initializing POAManager for the RootPOA using the server context and context manager. To make the event service working with FreeSSL, you will need to follow those steps depends on the role of your process whether it is a client or a server. For the event service, it is a bit tricky here since the event service acts as both server and client. Hence, you will need to add FSSL code for both server and client into the com.ooc.CosEvent.Server.java file. If you have a PushSupplier, then it should be quite simple. You just need client side JFSSL code here. However, for the PushConsumer, you will have to add both server and client FSSL code since it acts as client when it creates proxyPushSupplier on the event channel and connects itself to the event channel. It also acts as a server when the event channel pushes all the events into it. For the pull mode, it is a similar but reversed situation. I have modified and configured the event service with JFSSL using JSSE toolkit. I also brought up a PushConsumer and PushSupplier and both communicated with the event service using SSL. Some key configuration variables I used as following: ooc.oci.client=fssliop --backend com.ooc.FSSL.jsse.FSSLImpl ooc.oci.server=fssliop ooc.event.endpoint=fssliop --port 21411 ooc.orb.service.EventService=corbaloc:fssliop:localhost:21411/DefaultEve ntChannel ooc.orb.service.EventChannelFactory=corbaloc:fssliop:localhost:21411/Def aultEventChannelFactory Please let me know if you have any questions. Regards, Joe -- Joe Luo Team Orbacus - Your CORBA Source E-Mail: [email protected] WWW: http://www.orbacus.com _______________________________________________ OB-Users Mailing List - [email protected] http://mail.ooc.nf.ca/mailman/listinfo/ob-users Visit our support FAQ before you send a message. http://www.orbacus.com/faq/support.html