Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8667

Custom certificate alias not being used when using HC5 AsyncHTTPConduit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4.6, 3.5.1
    • 3.5.2, 3.4.7, 4.0.0
    • Transports
    • None
    • Unknown

    Description

      When using `org.apache.cxf.transport.http.asyncclient.hc5.AsyncHTTPConduit` and setting `TLSClientParameters.certAlias` so the HTTP client sends a specific client certificate from the keystore, the certificate alias is ignored.

      From what I've been able to debug, it seems `AsyncHTTPConduit` creates a `RegistryBuilder<TlsStrategy>` with the proper SSL settings but never actually registers them with the HTTP client:

      https://github.com/apache/cxf/blob/1ecc24d817d4ef0cba4a4079a1c69abf33d1ad9b/rt/transports/http-hc5/src/main/java/org/apache/cxf/transport/http/asyncclient/hc5/AsyncHTTPConduit.java#L528

      Attachments

        Issue Links

          Activity

            People

              reta Andriy Redko
              bgk Bastien Bouclet
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: