Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-3245

Permanent fix for BasicAuthRestClientService Certificate exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Istanbul Release
    • Honolulu Release, Istanbul Release
    • cds
    • None

      When trying to use basic auth, thus no keystore or trustore configured and trying to connect to a service via REST next exception is thrown

      "status": {
       "code": 500,
       "eventType": "EVENT_COMPONENT_FAILURE",
       "timestamp": "2021-03-23T15:43:15.427Z",
       "errorMessage": "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target",
       "message": "failure"
       },
      

      This was resolved in Honolulu by making BasicAuthRestClientService trust all certificates.  HOWEVER, this violates a Global Requirement expected in Istanbul, which forbids disabling host name verification.

       

            cdgasparini cdgasparini
            djtimoney Dan Timoney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: