IBM Verify

IBM Verify

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

 View Only
  • 1.  Istio gateway and SSL junctions not running

    Posted Mon March 15, 2021 02:03 PM
    Hi we are trying to make an SSL junction between Webseal and Istio ingress gateway, but the junction remains in not running state with the error, caused by a SSL handshake error:
    CONNECTED(00000005)
    ---
    no peer certificate available
    ---
    No client certificate CA names sent
    ---
    SSL handshake has read 0 bytes and written 289 bytes
    ---
    New, (NONE), Cipher is (NONE)
    Secure Renegotiation IS NOT supported
    Compression: NONE
    Expansion: NONE
    No ALPN negotiated
    SSL-Session:
    Protocol : TLSv1.2
    Cipher : 0000
    Session-ID:
    Session-ID-ctx:
    Master-Key:
    Key-Arg : None
    Krb5 Principal: None
    PSK identity: None
    PSK identity hint: None
    Start Time: 1615806016
    Timeout : 300 (sec)
    Verify return code: 0 (ok)
    ---
    write:errno=104

    We are trying to make the junction with the hostname of istio ingress gateway ip on port 443, where is the problem?

    If i try to make handshake with openssl it works without problem:
    openssl s_client -connect [hostname]:443 -cert [/path/to/cert] -key [path/to/key] <<< "Q"

    verify error:num=18:self signed certificate
    verify return:1
    verify return:1
    ---
    Certificate chain
    ....
    ---
    Server certificate
    -----BEGIN CERTIFICATE-----
    .....
    -----END CERTIFICATE-----
    subject...
    issuer....
    ---
    No client certificate CA names sent
    Peer signing digest: SHA256
    Peer signature type: RSA-PSS
    Server Temp Key: X25519, 253 bits
    ---
    SSL handshake has read 1629 bytes and written 421 bytes
    Verification error: self signed certificate
    ---
    New, TLSv1.2, Cipher is ECDHE-RSA-CHACHA20-POLY1305
    Server public key is 2048 bit
    Secure Renegotiation IS supported
    Compression: NONE
    Expansion: NONE
    No ALPN negotiated
    SSL-Session:
    Protocol : TLSv1.2
    Cipher : ECDHE-RSA-CHACHA20-POLY1305
    Session-ID: A7596B0E05C16393DC074B9437CF788E013ED194ADF2356A3D8767408F2473ED
    Session-ID-ctx:
    Master-Key: 9AB457C298D493EBABF9BB166A6894CAFA389014343A794BF650A8FB43469D41ED06F3BE27D5C53E178D736EC9202C54
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    TLS session ticket lifetime hint: 7200 (seconds)
    TLS session ticket:
    .....
    Start Time: 1615807758
    Timeout : 7200 (sec)
    Verify return code: 18 (self signed certificate)
    Extended master secret: yes
    ---
    DONE


    ------------------------------
    Matteo Longo
    ------------------------------


  • 2.  RE: Istio gateway and SSL junctions not running

    Posted Mon March 15, 2021 04:32 PM
    Matteo,
     
    What is the error you are seeing when you attempt to create the junction?  Have you added the server CA certificate to the WebSEAL key file?  I see from the openssl output that you are using a self signed certificate and so you should be able to 'load' the certificate directly from the server using the 'SSL Certificates' panel in the LMI.
     
     

    Scott A. Exton
    Senior Software Engineer
    Chief Programmer - IBM Security Verify Access

    IBM Master Inventor

     
     
     
     





  • 3.  RE: Istio gateway and SSL junctions not running

    Posted Mon March 15, 2021 05:34 PM
    Thanks scott for the response, i have no error but the junction state is not running. Yes i have added the certificate on the webseal key store, but i can't figure out the problem. When Webseal try to make the SSL handshake i can see:
    ---
    no peer certificate available
    ---
    No client certificate CA names sent
    ---
    SSL handshake has read 0 bytes and written 289 bytes
    ---
    Maybe webseal it's trying to make SSL handshake on the ip of the hostname that i've supplied? Because it says that can't find the peer certificate.
    I think that he's trying to make ssl handshake to the ip ingress gateway of Istio that is a TCP load balancer without SSL certificate, in order to work it must do SSL handshake with the hostname that i have supplied! i can't figure out what is doing!

    ------------------------------
    Matteo Longo
    ------------------------------



  • 4.  RE: Istio gateway and SSL junctions not running

    Posted Mon March 15, 2021 06:27 PM
    Matteo,
     
    Further information is really required before I can offer any real advice, namely:
    1. Is Istio acting as a layer-3 proxy or a network terminating layer-7 proxy?
    2. Where are you seeing those 'no peer certificate available' messages?  Are you snooping traffic, or seeing them somewhere else?
    3. Are you using SSL mutual authentication?  The original openssl command which you showed appears to indicate that you are using mutual authentication.
    4. What errors appear in the WebSEAL message file?
    5. What error is shown in the LMI when you attempt to create the junction?
    Thanks.
     
     

    Scott A. Exton
    Senior Software Engineer
    Chief Programmer - IBM Security Verify Access

    IBM Master Inventor


    Phone: 61-7-5552-4008
    E-mail: scotte@au1.ibm.com
    1 Corporate Court
    Bundall, QLD 4217
    Australia
     
     





  • 5.  RE: Istio gateway and SSL junctions not running

    Posted Tue March 16, 2021 06:24 AM
    I don't know Istio, so I don't know how it handles certificates. But what I have seen with some application servers is that it matters with which hostname it is called.

    I had cases where I had to add an SNI (Server Name Indicator) in the junction definition to get the correct certificate.

    ------------------------------
    Laurent LA Asselborn
    ------------------------------



  • 6.  RE: Istio gateway and SSL junctions not running

    Posted Thu March 18, 2021 06:23 AM
    Thanks @Laurent LA Asselborn, after setting the SNI in the junction it goes in running state. But after a few minutes the junction goes another time in not running state with the error in the log:

    DPWIV1228W WebSEAL could not establish a secure connection to the server, profile-manager-pre-prod.gcp.groupamait.groupama.loc, for the /PP_PManagerGCP junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:20:35.771+01:00I----- 0x38CF07E9 webseald WARNING wwa jct RemoteJunction.cpp 2155 0x7fc30fe3c700
    DPWWA2025W IBM Security Access Manager WebSEAL has lost contact with junction (/PP_PManagerGCP) server: profile-manager-pre-prod.gcp.groupamait.groupama.loc
    2021-03-18-11:20:41.930+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc310558700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, profile-manager-pre-prod.gcp.groupamait.groupama.loc, for the /PP_PManagerGCP junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:20:51.972+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc30e866700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:20:52.822+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc30f761700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:20:53.462+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc30ff40700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:20:53.998+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc30e005700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:20:54.448+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc310044700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:20:54.910+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc30e96a700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:20:55.437+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc30ecb7700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:21:03.438+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc31069d700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:21:04.393+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc310864700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:21:04.775+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc30ecf8700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:21:05.061+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc30e8e8700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:21:05.955+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc31028d700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:21:06.207+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc30f8a6700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:21:06.580+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc30e311700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).
    2021-03-18-11:21:06.915+01:00I----- 0x38AD54CC webseald WARNING wiv ssl SSLConnection.cpp 2401 0x7fc30eb31700
    DPWIV1228W WebSEAL could not establish a secure connection to the server, nx-web-pre-prod.gcp.groupamait.groupama.loc, for the /PP_GCP_nexus-web junction (Function call: gsk_secure_soc_init; failed error: 0x196 GSK_ERROR_IO).

    I can't figure out the problem! Could you help me?


    ------------------------------
    Matteo Longo
    ------------------------------