Forum Discussion

sumitpundir's avatar
sumitpundir
Icon for Nimbostratus rankNimbostratus
May 09, 2022

Issue with application on custom port

Hi All,

I onboarded an application "https://xyz.com:5555". Have applied client and server SSL profiles to it. However, when API requests for API, it throws an error "http_request_failed" along with "cURL error 60: SSL Certificate problem: unable to get local issuer certificate". Once we shift traffic directly to the server, issue can no longer be seen.Kindly let me know where i could be going wrong.

Regards,Sumit.

 

8 Replies

  • Gajji's avatar
    Gajji
    Icon for Cirrostratus rankCirrostratus

    Sorry not much details in your query
    Does it work without WAF ?
    Have you taken tcpdump capture? if you share plz.

    • sumitpundir's avatar
      sumitpundir
      Icon for Nimbostratus rankNimbostratus

      Gajji API is to get OTP. Yes, it works fine once WAF is bypassed, error screenshot attached with initial post.

      As of now it i not possible to take tcpdump, traffic is bypassed.

      • Gajji's avatar
        Gajji
        Icon for Cirrostratus rankCirrostratus

        Verify
        1)client certificate , does it contain chain certficate(including root) or you just install cert or

        reinstall it.....

        2) on Client and server side both having self signed cert?

        3)WAF bypassed  - when WAF is enabled - do you see any error with support id or Source IP?

  • Have you googled what the errors mean for curl not f5 as there is a lot of info on the internet that maybe the API client system does not have the CA cert that F5 uses or the intermidiate cert is not attached to the F5 ssl profile:

     

    https://www.ibm.com/mysupport/s/question/0D50z00005q4FheCAE/curl-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate?language=en_US

    https://kb.vmware.com/s/article/78471

     

    F5 CA chain:

     

    https://support.f5.com/csp/article/K41280190

     

    https://support.f5.com/csp/article/K13302

     

     

    • sumitpundir's avatar
      sumitpundir
      Icon for Nimbostratus rankNimbostratus

      Thank you for the details Nikoolayy, certificate is available at API client end and also we have required certificates under SSL profile attached with VIP.
      Application works fine once we direct the traffic directly to the server. Issue comes when WAF is in picture and once OTP requests are made.

       

      Thank you once again for your input.

      • Nikoolayy1's avatar
        Nikoolayy1
        Icon for MVP rankMVP

        If you have other F5 modules like WAF or APM for OTP in some rare cases they can cause issues as the F5 apm and asm can be controlled with layered virtual servers how to work with each other which module to be first and the f5 asm needs to be bypassed for f5 APM remote vpn to work if you are using this. Also check the ssl handshake logs on the F5 device and if needed enable ssl handshake debug(it should be enabled by default on 13.1 and newer) as F5 in many cases can better tell you why the handshake fails as maybe ssl client certificate authentication  failure etc. and if features like ask proxy, etc.are enabled on the client ssl profile.        Just for info you are not using machine certificate authentication to the F5 APM on the rest-api clients right as I saw something about that?