Author |
Message
|
EricCox |
Posted: Thu Oct 29, 2015 9:06 am Post subject: HermesJMS w/ SSL Connecting to Broker v8.0.0.5 and MQ 7.5 |
|
|
Master
Joined: 08 Apr 2011 Posts: 292
|
To all,
How do I configure the Hermes JMS Connection Factory SSL parameters correctly.
I have these so far.
SSLCertStores | C:\....\personal.kdb
SSLCipherSuite | null_sha
Are these set correctly and do I need any other parameters?
I had this working a couple of years ago without SSL, so this is my first attempt at SSL.
Thanks to all, |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Oct 29, 2015 10:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Hermes is Java based AFAIK. This means you can't use a kdb you'd have to use a JKS. The rest of the configuration should be standard JMS SSL config.
However check what JVM is being used by Hermes. Depending on the version and apars you have applied, you might have to use an IBM JVM.
Also remember that making a FIPS connection, forces all other connections in the JVM to also be FIPS compliant...
Check out the infocenter there is a table for cipherspec to ciphersuite mappings. Be sure to look up the indices as they will tell you about restrictions or need for SSLFIPS=true  _________________ MQ & Broker admin |
|
Back to top |
|
 |
EricCox |
Posted: Thu Oct 29, 2015 11:24 am Post subject: SSCertStores makes Session Disappear |
|
|
Master
Joined: 08 Apr 2011 Posts: 292
|
When I try to Add Property SSLCertStores the Session disappears from the Hermes UI.
I haven't tried to reboot yet.
Does anyone know why?
The Hermes JVM is showing as JVM: 1.8.0_45 from Oracle
Here is the error (could this be because of the Oracle JVM)(How do I switch to IBM):
2015-10-29 15:18:41,550 [AWT-EventQueue-0] ERROR hermes.JAXBHermesLoader - unable to create Hermes instance Y2-1: Cannot invoke com.ibm.mq.jms.MQConnectionFactory.setSSLCertStores - argument type mismatch
java.lang.IllegalArgumentException: Cannot invoke com.ibm.mq.jms.MQConnectionFactory.setSSLCertStores - argument type mismatch
at org.apache.commons.beanutils.PropertyUtilsBean.invokeMethod(PropertyUtilsBean.java:1778)
at org.apache.commons.beanutils.PropertyUtilsBean.setSimpleProperty(PropertyUtilsBean.java:1759)
at org.apache.commons.beanutils.PropertyUtilsBean.setNestedProperty(PropertyUtilsBean.java:1641)
at org.apache.commons.beanutils.PropertyUtilsBean.setProperty(PropertyUtilsBean.java:1677)
at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:1031)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:313)
at hermes.impl.LoaderSupport.populateBean(LoaderSupport.java:417)
at hermes.impl.ConnectionFactoryManagerImpl.setProvider(ConnectionFactoryManagerImpl.java:236)
at hermes.impl.ConnectionFactoryManagerImpl.<init>(ConnectionFactoryManagerImpl.java:102)
at hermes.JAXBHermesLoader.createHermes(JAXBHermesLoader.java:561)
at hermes.JAXBHermesLoader.load(JAXBHermesLoader.java:468)
at hermes.HermesContext.load(HermesContext.java:57)
at hermes.HermesInitialContextFactory.getInitialContext(HermesInitialContextFactory.java:94)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at hermes.browser.HermesBrowser.loadConfig(HermesBrowser.java:1149)
at hermes.browser.dialog.PreferencesDialog.updateData(PreferencesDialog.java:373)
at hermes.browser.dialog.AbstractOptionDialog.onOK(AbstractOptionDialog.java:522)
at hermes.browser.dialog.AbstractOptionDialog$1.actionPerformed(AbstractOptionDialog.java:437)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at hermes.swing.actions.EditObjectAction.actionPerformed(EditObjectAction.java:113)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI.doClick(Unknown Source)
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source) |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Oct 30, 2015 6:36 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Do not try and set that property as you would have to pass something that is a class instance in a JVM.
Pass the stores either through environmental parameters or find the right place in the HERMES config (or SOAPUI config) to pass the stores's location...
Have you tried running Hermes from the dos prompt with the keystore / truststore set up using JAVA_OPTIONS as environmental variables?
Code: |
set java_options=-Djavax.net.ssl.keyStore="path to keystore.jks" |
You might have to set up keystore, truststore, keystore password and truststore password that way. Google it.
Note that with an IBM JVM you might be using IBM_JAVA_OPTIONS instead of JAVA_OPTIONS
Check out that your invocation of Hermes looks something like
Code: |
java %JAVA_OPTIONS% -cp ..... <hermes main class> <hermes params> |
If you are using Hermes as part of SOAPUI you need to specify the keystore and truststore to SOAPUI. Hermes will pick up on it.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
SunScorpio19 |
Posted: Sun Feb 19, 2023 11:57 pm Post subject: |
|
|
 Newbie
Joined: 03 Jul 2017 Posts: 5 Location: India
|
As the error clearly suggests, the arguments provided as value doesn't match so the session disappears when you start Hermes again.
Quote: |
com.ibm.mq.jms.MQConnectionFactory.setSSLCertStores - argument type mismatch
java.lang.IllegalArgumentException: Cannot invoke com.ibm.mq.jms.MQConnectionFactory.setSSLCertStores - argument type mismatch |
Use "SSLCertStoresAsString" instead to provide the path of JKS file being used. |
|
Back to top |
|
 |
|