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

NullPointerException when certAlias specified but no keyManagers are configured

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.15
    • Fix Version/s: 3.1, 2.7.16, 3.0.5
    • Component/s: Transports
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When only certAlias is specified in tlsClientParameters with no keyManagers a NullPointerException is thrown regardless the keystore is specified using javax.net.ssl.keyStore system property or not.

      In a use case I have I want my client to be able to specify a certAlias in configuration file but this is expected to be used only when the server actually requires client certificate and a keystore with the given alias is specified using javax.net.ssl.keyStore system property.

      I'd like to specify tlsClientParameters like:

      <http:tlsClientParameters disableCNCheck="${disableCNCheck}">
          <sec:certAlias>${certAlias}</sec:certAlias>
      </http:tlsClientParameters>
      

        Attachments

        1. 0001-NPE-fix.patch
          10 kB
          Tom Pasierb

          Activity

            People

            • Assignee:
              coheigea Colm O hEigeartaigh
              Reporter:
              tompasik Tom Pasierb
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: