Using SSL between ODWEK and the Content Manager OnDemand server
If you want to connect your ODWEK application to a Content Manager OnDemand server that is configured to listen on an SSL port, the ODWEK Java APIs must also be configured. Once ODWEK has the information it needs, all communication between it and the Content Manager OnDemand server is done by using SSL.
About this task
Properties cfgProps = new Properties();
cfgProps.setProperty(ODConfig.USE_SSL_DEFAULT, "TRUE");
cfgProps.setProperty(ODConfig.SSL_KEYRINGFILE, "/opt/ssl/ondemand.kdb");
cfgProps.setProperty(ODConfig.SSL_KEYRINGSTASH, "/opt/ssl/ondemand.sth");
If the SSL .kdb and .sth files are valid and the server has been configured to listen on an SSL port, the only other important step is to make sure that the proper port is specified before logon.
odServer.setPort(14450); // this is the SSL port that the server
has been configured to use
odServer.logon( “odserver.mycompany.com”, “admin”, “secret” );
For instructions on how to configure the Content Manager OnDemand server to listen on an SSL port, see the IBM® Content Manager OnDemand for Multiplatforms: Installation and Configuration Guide.