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.  MQJE013:Error accessing socket streams.

    Posted 05/31/18 06:26 AM
    Hi
    My client is getting following errors when he is trying to connect to queue manager using SSL and there are no error logs in MQ side . 
    MQJMS2005:failed to create MQQueueManager for 'hostname:qmgr'
    null
    com.ibm.mq.MQException:MQJE001.an MqException occured: Complettion Code 2 , Reason 2059
    MQJE013:Error accessing socket streams.

    Regards


    ------------------------------
    Vinay kumar
    ------------------------------


  • 2.  RE: MQJE013:Error accessing socket streams.

    Posted 05/31/18 07:01 AM
    There will be no errors on the queue manager side because your connection has not made it that far.

    In order for us to help you, I think you will have to tell us a little more about your SSL set up on the client side. Clearly there is something amiss there, but to tell you what it is, you will first need to tell us what you have done.

    Cheers,
    Morag

    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    ------------------------------



  • 3.  RE: MQJE013:Error accessing socket streams.

    Posted 05/31/18 07:16 AM
    Thanks for reply . 

    I am part of MQ team only and  application want to perform both SSL/LDAP authentication as part of SWIFT new policies . 

    I have implemented LDAP authentication on queue manager and which is successful . When application trying to make connections from their server they are getting above error . 

    This is MQ config which they use on their code .

    //*
    Hostname(''blahblah");
    port(1416);
    TransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
    QueueManager("TEST")
    SSLCIPHERSUITE("TLS_RSA_WITH_AES_128_CBC_SHA");
    Channel("blah")
    Queue("BlahBlah");

    *//

    They create a jar file and running from their server as follows and they have updated certs on their server .

    command will be something like this :

    java -classpath "jar file " -Djdk.tls.client.protocols="TLSv1" -Djavax.net.ssl.keyStore=directory -Djavax.net.ssl.keyStorePassword=blah -Djavax.net.ssl.trustStore=directory -Djavax.net.ssl.trustStorePassword=blah file


    ------------------------------
    Vinay kumar
    ------------------------------



  • 4.  RE: MQJE013:Error accessing socket streams.

    Posted 05/31/18 07:59 AM
    For use of that cipher spec do you have the unrestricted policy files are applied to the JRE ?

    Also what level of JRE are you using?

    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    ------------------------------



  • 5.  RE: MQJE013:Error accessing socket streams.

    Posted 05/31/18 10:22 AM
    jre1.8.0_65
    yes the unrestricted policy fiels are part of jre .

    ------------------------------
    Vinay kumar
    ------------------------------



  • 6.  RE: MQJE013:Error accessing socket streams.

    Posted 05/31/18 07:49 PM
    I do not use this parameter when I run SSL clients:-
    -Djdk.tls.client.protocols="TLSv1"

    What happens if you try without setting the default protocol in this way, i.e. remove this parameter completely?

    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    ------------------------------



  • 7.  RE: MQJE013:Error accessing socket streams.

    Posted 06/01/18 05:24 AM
    After removing this parameter and run with debug option it provided error logs and issue is with jks which app is using .

    Thanks for help . 

    Regards

    Vinay Kumar

    ------------------------------
    Vinay kumar
    ------------------------------