Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16059

Cannot configure x509 host name verifier on camel http component

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.7.0
    • Fix Version/s: None
    • Component/s: camel-http
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Hi,

      When using camel-http-starter (with Spring boot), if you try to set the property (as per https://camel.apache.org/camel-spring-boot/latest/http-starter.html):

      camel.component.http.x509-hostname-verifier = NoopHostnameVerifier

      Camel crashes at start up with the message:

       

      Failed to bind properties under 'camel.component.http.x509-hostname-verifier' to javax.net.ssl.HostnameVerifier:

      Property: camel.component.http.x509-hostname-verifier
      Value: NoopHostnameVerifier
      Origin: class path resource [config/application.yml] - 71:31
      Reason: No converter found capable of converting from type [java.lang.String] to type [javax.net.ssl.HostnameVerifier]

       

      Thanks.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gilo Gianpaolo Lopresti
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: