From: Vihang K. <vka...@vm...> - 2014-04-28 19:22:57
|
Thanks so much Dave. I am currently looking into possibility of implementing certificate based authentication for my CIM Client. According to the documents, the CIMOM certificate should be imported into the truststore before CIM Client application initiates the connection. Is there a better way to do this? Can we do it in the run-time such that we can retrieve the certificate that CIMOM sent during the first connection, and then trust the certificate based on a user action? Thanks, Vihang ----- Original Message ----- From: "Dave Heller" <hel...@li...> To: sbl...@li... Sent: Monday, April 28, 2014 11:08:57 AM Subject: Re: [Sblim-devel] CIM Client configuration for SSL connections Hi Vihang, It sounds like your question pertains more to configuration in general than it does to SSL specifically. You can find documentation for both in the ./org/sblim/cimclient/doc-files folder in the project (that is, packaged with the Java CIM Client) or on the web at: https://urldefense.proofpoint.com/v1/url?u=http://sblim.sourceforge.net/cim-client2-v22-doc/org/sblim/cimclient/doc-files/configuration.html&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=JJTdWpNc91BJtQHVcV00ozCvrrHJkhV%2FACfSosF43PY%3D%0A&m=LgTMWiB9RXrobDbW8zaIKksm33fPso1Wi3jIA%2BK0USQ%3D%0A&s=9673ccb7d240f7db84fb901ee40d922afc00445e64534e39f8e9242823365fb2 https://urldefense.proofpoint.com/v1/url?u=http://sblim.sourceforge.net/cim-client2-v22-doc/org/sblim/cimclient/doc-files/secure.html&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=JJTdWpNc91BJtQHVcV00ozCvrrHJkhV%2FACfSosF43PY%3D%0A&m=LgTMWiB9RXrobDbW8zaIKksm33fPso1Wi3jIA%2BK0USQ%3D%0A&s=d041b0a20c3b857d391dd31213efc75a3724210e25ad1c0fd75340ae5ffd2485 https://urldefense.proofpoint.com/v1/url?u=http://sblim.sourceforge.net/cim-client2-v22-doc/org/sblim/cimclient/doc-files/indications.html&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=JJTdWpNc91BJtQHVcV00ozCvrrHJkhV%2FACfSosF43PY%3D%0A&m=LgTMWiB9RXrobDbW8zaIKksm33fPso1Wi3jIA%2BK0USQ%3D%0A&s=f12a83ffa031ef9797fb8e6b3808ca3b1e2d0b32970e77146144141f034b219a https://urldefense.proofpoint.com/v1/url?u=http://sblim.sourceforge.net/cim-client2-v22-doc/org/sblim/cimclient/doc-files/secure_indications.html&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=JJTdWpNc91BJtQHVcV00ozCvrrHJkhV%2FACfSosF43PY%3D%0A&m=LgTMWiB9RXrobDbW8zaIKksm33fPso1Wi3jIA%2BK0USQ%3D%0A&s=e797c87fbfe1ae96578296b198761728d4a4f45b8d1d7577f5c9a3897e7f2b99 It is not necessary to set the properties for each instance of the client individually, although you can do that if your application requires it. The difference between global config, client/listener-specific config and thread-specific config is explained in configuration.html. Let me know if you have questions after reading that. Perhaps your confusion comes from the difference between client.getProperties() and client.getProperty(), where client is an instance of WBEMClient. It's true that client.getProperties() does not return any values set in the .properties file. That's because properties from the file are global properties, and client.getProperties() only returns those properties specific to that client instance (as set via client.setProperty() for example). To return a list of global properties, including those read from the file, you can use System.getProperties(). client.getProperty() behaves a little differently. This method will return a value for the property in question in the following precedence: local (i.e thread-specific), client-specific, global, default (i.e as set in WBEMConfigurationDefaults). So in that sense, client.getProperty() can return a value that was set via the .properties file, wheareas client.getProperties() will not. I hope that clarifies. Dave H. On 04/23/2014 06:28 PM, Vihang Karajgaonkar wrote: > Hi Everyone, > > I need to understand how to configure the CIM Client. The > WBEMConfiguration.getGlobalConfiguration() gives the properties settings > from sblim-cim-client2.properties file. But the WBEMClient.getProperties > does not have the properties from the sblim-cim-client2.properties file. > Do we have to explicitly set all the properties again for each instance > of WBEMClient? If not, how do we enforce the client to pick the > configuration properties from the sblim-cim-client2.properties file > wherever it is created? > > Thanks, > Vihang > > > ------------------------------------------------------------------------------ > Start Your Social Network Today - Download eXo Platform > Build your Enterprise Intranet with eXo Platform Software > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > Get Started Now And Turn Your Intranet Into A Collaboration Platform > https://urldefense.proofpoint.com/v1/url?u=http://p.sf.net/sfu/ExoPlatform&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=JJTdWpNc91BJtQHVcV00ozCvrrHJkhV%2FACfSosF43PY%3D%0A&m=LgTMWiB9RXrobDbW8zaIKksm33fPso1Wi3jIA%2BK0USQ%3D%0A&s=09d2d16a529580f2309172f76f9bf54987b280265f4ebdf704bda4f4b4af8eaa > > > > _______________________________________________ > Sblim-devel mailing list > Sbl...@li... > https://urldefense.proofpoint.com/v1/url?u=https://lists.sourceforge.net/lists/listinfo/sblim-devel&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=JJTdWpNc91BJtQHVcV00ozCvrrHJkhV%2FACfSosF43PY%3D%0A&m=LgTMWiB9RXrobDbW8zaIKksm33fPso1Wi3jIA%2BK0USQ%3D%0A&s=e6c8726ddcc206654b4beabe3e38d9a08210cfa4cf1c178a76e404d07445d2fe > ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free." https://urldefense.proofpoint.com/v1/url?u=http://p.sf.net/sfu/SauceLabs&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=JJTdWpNc91BJtQHVcV00ozCvrrHJkhV%2FACfSosF43PY%3D%0A&m=LgTMWiB9RXrobDbW8zaIKksm33fPso1Wi3jIA%2BK0USQ%3D%0A&s=1406267dd8979f0cded7d4ff1034747c2bb2d5a9ddf6eccdd91a6c1e048d94a9 _______________________________________________ Sblim-devel mailing list Sbl...@li... https://urldefense.proofpoint.com/v1/url?u=https://lists.sourceforge.net/lists/listinfo/sblim-devel&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=JJTdWpNc91BJtQHVcV00ozCvrrHJkhV%2FACfSosF43PY%3D%0A&m=LgTMWiB9RXrobDbW8zaIKksm33fPso1Wi3jIA%2BK0USQ%3D%0A&s=e6c8726ddcc206654b4beabe3e38d9a08210cfa4cf1c178a76e404d07445d2fe |