ramu11 opened a new pull request, #31086: URL: https://github.com/apache/camel/pull/31086
## Description Adds support for configuring SSL connections in `camel-smpp` using Camel's `SSLContextParameters`. Previously, SSL connections created with the `smpps` scheme or `usingSSL=true` relied on the JVM default `SSLSocketFactory`. This limited trust and key material configuration to JVM-wide JSSE system properties. This change allows SSL configuration at the endpoint level and supports Camel's global SSL context parameters. ## Changes - Add the `sslContextParameters` endpoint option to `SmppConfiguration`, under the `security` label. - Implement `SSLContextParametersAware` in `SmppComponent` and add the `useGlobalSslContextParameters` component option. - Give explicitly configured endpoint SSL parameters precedence over global SSL context parameters. - Use the configured SSL context's socket factory for both direct SSL connections and SSL connections established through an HTTP CONNECT proxy tunnel. - Preserve the JVM default SSL socket factory when no SSL context parameters are configured. - Preserve hostname verification for both direct and proxy connections. - Reuse a `SmppConnectionFactory` instance across session recreation and reconnect attempts in producers and consumers, allowing the configured SSL socket factory to be cached for the lifetime of the endpoint consumer or producer. - Update component documentation and generated catalog metadata. ## Tests Added local TLS server tests covering: - Successful direct TLS connections using the configured trust store. - Successful TLS connections through an HTTP CONNECT proxy using the configured trust store. - Rejection of the test certificate when custom SSL context parameters are not configured. - Hostname verification with configured SSL context parameters, both directly and through a proxy. The existing hostname verification tests are also retained. Executed: ```bash mvn -pl components/camel-smpp -am verify ``` Results: - Unit tests: 202 run, 0 failures, 0 errors, 4 skipped. - Integration tests: 22 run, 0 failures, 0 errors, 18 skipped. - Build: SUCCESS Relates to CAMEL-25643 and preserves the hostname verification behaviour introduced by CAMEL-25622. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
