Independent of the implementation, any CORBA application may be configured to work on top of the Secure Socket Layer (SSL) to provide a secure communication channel.
Therefore this example will not provide new code, but just configure the basic Hello example to work on top of SSL.
Realize secure communication between CORBA objects.
With this example comes a file EspressoDemo.p12 which contains two certificates. One of them is a CA certificate.
A doubleclick on this file starts the import procedure into the Microsoft certificate stores. An import with the default values should work well for the sake of this example. The private key is secured with the password "espresso".
Start the server with the connection type 'SSL':
RuntimeConfiguration rc = new RuntimeConfiguration(); rc.SetApplicationLog(OrbErrorLevel.ERRORS, "SrvLog.log", false); rc.SetConnnectionType(ConnectionType.SSL); Ics.CORBA.ORB oOrb = Ics.CORBA._ORB.init(rc); |
> ..\Hello\HelloSrv\bin\debug\HelloSrv c:\hello.ior -ConType=SSL |
Additional parameters are
The client knows from the IOR (within file c:\hello.ior) whether to use SSL or not.
Therefore, we start the client just as before:
> .\HelloClt\bin\debug\HelloClt |