Hello Rohan!

You're moving in the right direction, apart from your configuration that
looks like that:
- to:
            id: to-e5b0
            uri: https
            parameters:
              sslContextParameters: customssl
              httpUri: https://<secure_URL>/
              httpMethod: GET

you need to add to your *CamelContext* a bean of type *SSLContextParameters*
with name *customssl*. The type is specified in the docs
<https://camel.apache.org/components/4.10.x/http-component.html#_query_parameters>
and the name of the bean should match what you have in YAML.
You can look up here
<https://camel.apache.org/components/4.10.x/others/yaml-dsl.html#_defining_beans>
how to add beans to *CamelContext *in YAML dsl, in your case it might look
like that:
- beans:
    - name: "customssl"
      type: "#class:my.class.implementing.SslContextParameters"
      properties:
        myProperty: "myValue"

You can also open a post in zulipchat <https://camel.zulipchat.com/> if you
have any further questions.

Best regards,
Ivan Kulaga



On Mon, Mar 10, 2025 at 6:20 PM Rohan Emmanuel <rohan.emmanue...@gmail.com>
wrote:

> hi ,
> i am trying to configure SSL context parameters using YAML dsl. I am not
> able to configure it.  can anyone point me the sample configuration , i am
> not able to find documentation for the YAML dsl. any pointers would be
> appreciated.
> YAML Snippet below for your reference, here how to configure the custom SSL
> bean using YAML configuration.?
>
> - to:
>             id: to-e5b0
>             uri: https
>             parameters:
>               sslContextParameters: customssl
>               httpUri: https://<secure_URL>/
>               httpMethod: GET
>
> --
> Regards,
> Rohan Emmanuel
>

Reply via email to