ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » HermesJMS w/ SSL Connecting to Broker v8.0.0.5 and MQ 7.5

Post new topic  Reply to topic
 HermesJMS w/ SSL Connecting to Broker v8.0.0.5 and MQ 7.5 « View previous topic :: View next topic » 
Author Message
EricCox
PostPosted: Thu Oct 29, 2015 9:06 am    Post subject: HermesJMS w/ SSL Connecting to Broker v8.0.0.5 and MQ 7.5 Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Oct 29, 2015 10:16 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
EricCox
PostPosted: Thu Oct 29, 2015 11:24 am    Post subject: SSCertStores makes Session Disappear Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Fri Oct 30, 2015 6:36 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
SunScorpio19
PostPosted: Sun Feb 19, 2023 11:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » HermesJMS w/ SSL Connecting to Broker v8.0.0.5 and MQ 7.5
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.