gnodet opened a new pull request, #22194:
URL: https://github.com/apache/camel/pull/22194

   ## Summary
   
   - Move SSL configuration (`camel.ssl.*`) before HTTP server configuration so 
global SSL context is available when the server is created
   - Auto-enable `useGlobalSslContextParameters` on both HTTP server and 
management server when `camel.ssl.enabled=true`, removing the need to set it 
separately
   - Generate a self-signed certificate when SSL is enabled but no keystore is 
configured, enabling HTTPS with a single property for development use
   
   ### Before (4+ properties needed)
   ```properties
   camel.ssl.enabled=true
   camel.ssl.keyStore=file:keystore.jks
   camel.ssl.keystorePassword=changeit
   camel.server.useGlobalSslContextParameters=true
   ```
   
   ### After — minimal for development (1 property)
   ```properties
   camel.ssl.enabled=true
   ```
   
   ### After — with keystore for production (3 properties)
   ```properties
   camel.ssl.enabled=true
   camel.ssl.keyStore=file:keystore.jks
   camel.ssl.keystorePassword=changeit
   ```
   
   ## Test plan
   
   - [x] Added `testMainSSLSelfSigned` — verifies self-signed cert is generated 
and a valid SSLContext can be created
   - [x] Added `testMainSSLSelfSignedFluent` — same test using fluent API
   - [x] Added `testSelfSignedCertificateGenerator` — unit test for the 
generator utility
   - [x] All 15 existing SSL tests still pass


-- 
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]

Reply via email to