MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  configure Explorer programatically?

    Posted Wed March 01, 2023 01:35 PM
    Edited by John Hawkins Wed March 01, 2023 01:44 PM

    Hi Folks,

    I'm trying to automagically install explorer and configure it for a group of users.

    I'm generating the JKS OK. However, is it possible to then programmatically configure explorer to use it i.e. pass it the jks location and passwd ? I'd want to set it as the default jks for all client connections. I know I can export the configuration of a past explorer which would give it both the location of the jks and the encrypted password for it. However, my password changes - so i need to know how that passwd is encrypted (presumably hidden in IBM code somewhere) or figure out how to set the jks password programmatically on-the-fly thru eclipse perhaps? or bypass that mechanism entirely?  

    Can I set the default for java perhaps on the eclipse start-up run command? I can't figure out how if I can.

    Alternatively is there a way to control the MQ eclipse plugin programmatically. I'm not an eclipse expert so starting from scratch and looking for a leg-up please !?

    many thanks as always !

    John.



    ------------------------------
    John Hawkins
    Integration Consultant
    ------------------------------



  • 2.  RE: configure Explorer programatically?

    Posted Wed March 01, 2023 04:44 PM

    Hello John,

    There are two "problems" with MQ EXplorer:

    • the configuration is stored in the "users" directory
    • it is not possible to specify a certificate label, the first certificate of the store considered validated by MQ Explorer is sent to the Queue Manager.

    For the first point, there is a solution:

     Install MQ Explorer normally

    • Rename C:\Users\<user> to C:\MQExplorer\IBM
    • Modify C:\MQExplorer\configuration\config.ini and replace 

    osgi.instance.area=@user.home/IBM/WebSphereMQ/workspace

    by 

    osgi.instance.area=C:/MQExplorer/IBM/WebSphereMQ/workspace

    Thus the MQ Explorer configuration will be valid used for all users

    Personally, I make installations where the same certificate is used by all users, so the link is protected, and users have to authenticate via a user + password.



    ------------------------------
    Luc-Michel Demey
    DEMEY CONSULTING
    lmd@demey-consulting.fr
    #IBMChampion
    ------------------------------



  • 3.  RE: configure Explorer programatically?

    Posted Thu March 02, 2023 04:26 AM

    Hi Luc-Michel,

    Thanks for the above - that's a better way than I'm doing so thanks for that (I just put a link to explorer on the desktop)

    unfortunately, I'm not in a position to create an AMI or anything where I've manually preset the SSL config - so that's still missing. Any thoughts?

    cheers, 



    ------------------------------
    John Hawkins
    Integration Consultant
    ------------------------------