IBM Support

IT44621: IBM MQ Appliance: setamschl command might inject invalid characters into a configuration file when the "-d" flag is used.

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When using setamschl to configure the AMS MCA interception:
    
    
    1. The keystore.conf was entered with garbage characters when
    using setamschl command with the "-d" option to remove MCA
    interception for the channel.
    
        The example is attached below:
    
        keystore.conf file before:
    
        cms.keystore = /var/mqm/vols/TEST1/qmgr/TEST1/ssl/key
        cms.certificate.channel.SVR_CHANNEL= ibmwebspheremqroot
    
        setamschl -m QMGR_NAME -n SVR_CHANNEL -d
    
        keystore.conf file after running setamschl with "-d" option:
    
        cms.keystore = /var/mqm/vols/TEST1/qmgr/TEST1/ssl/key
        # 819 923 # change 819 to ISO-8859-15 XSPG^A^S?
    
    
    2. If the certificate label provided is longer than 20
    characters, the dspamschl shows a truncated certificate label
    name. Though the certificate name stored in the keystore.conf
    file is correct.
    
        mqa(mqcli)# setamschl -m QM1 -n TEST.CHANNEL -c
    ThisIsALongCertificateLabel
        MCA interception rule for channel 'TEST.CHANNEL' added
    successfully.
    
        mqa(mqcli)# dspamschl -m QM1
        Channel       Certificate
    
        TEST.CHANNEL  ThisIsALongCertificat
    
        bash-4.4# cat ssl/keystore.conf
        cms.keystore = /var/mqm/vols/QM1/qmgr/QM1/ssl/key
        cms.certificate.channel.TEST.CHANNEL =
    ThisIsALongCertificateLabel
    

Local fix

  • Manually remove the garbage character in keystore.conf with the
    console key generated by IBM  support.
    

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    Users who are using MQ appliance with AMS MCA interception.
    
    
    Platforms affected:
    MultiPlatform
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    When using setamschl to configure the AMS MCA interception:
    
    1. With the "-d" option, garbage characters were added to the
    keystore.conf file. This is because of a coding error where the
    length of the pointer was not correct, causing the garbage
    values in the pointer to be copied to the file.
    
    2. If the certificate label provided is longer than 20
    characters, the dspamschl shows a truncated certificate label
    name. Though the certificate name stored in the keystore.conf
    file is correct.
    

Problem conclusion

  • The coding error in setamschl and dspamschl has been corrected
    so that the garbage characters are not added to keystore.conf
    file and the length of the certificate label name has been
    increased to 64 characters.
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
    Version    Maintenance Level
    v9.3 LTS   9.3.0.20
    v9.x CD    9.3.5
    
    The latest available maintenance can be obtained from
    'IBM MQ Recommended Fixes'
    https://www.ibm.com/support/pages/recommended-fixes-ibm-mq
    
    If the maintenance level is not yet available information on
    its planned availability can be found in 'IBM MQ
    Planned Maintenance Release Dates'
    https://ibm.biz/mqplannedmaintenance
    
    ---------------------------------------------------------------
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT44621

  • Reported component name

    MQ APPLIANCE M2

  • Reported component ID

    5900ALJ00

  • Reported release

    930

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2023-09-28

  • Closed date

    2024-05-07

  • Last modified date

    2024-05-10

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    MQ APPLIANCE M2

  • Fixed component ID

    5900ALJ00

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SS5K6E","label":"IBM MQ Appliance"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"930","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
10 May 2024