Skip to content

Commit 42c008c

Browse files
committed
CAMEL-23333: camel-core - Add documentation for sslContextParameters added to XML and YAML DSL
1 parent d439965 commit 42c008c

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

docs/user-manual/modules/ROOT/pages/camel-configuration-utilities.adoc

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,57 @@ available signature schemes. The excludes patterns have precedence over
379379
the includes patterns. No default filtering is applied to signature
380380
schemes.
381381

382+
=== Configuring SSLContextParameters in XML and YAML DSL
383+
384+
*Available as of Camel 4.19*
385+
386+
You can setup SSL in XML DSL as follows:
387+
388+
[tabs]
389+
====
390+
391+
XML::
392+
+
393+
[source,xml]
394+
----
395+
<camel xmlns="http://camel.apache.org/schema/xml-io">
396+
<sslContextParameters id="mySSL" keyStore="server.p12" keystorePassword="changeit"
397+
trustStore="truststore.p12" trustStorePassword="changeit"/>
398+
399+
<route id="sslRoute">
400+
<from uri="direct:ssl"/>
401+
<to uri="mock:ssl"/>
402+
</route>
403+
</camel>
404+
----
405+
406+
YAML::
407+
+
408+
[source,yaml]
409+
----
410+
- sslContextParameters:
411+
id: mySSL
412+
keyStore: server.p12
413+
keystorePassword: changeit
414+
trustStore: truststore.p12
415+
trustStorePassword: changeit
416+
- from:
417+
uri: "direct:ssl"
418+
steps:
419+
- to: "mock:ssl"
420+
----
421+
422+
Spring Boot::
423+
+
424+
[source,properties]
425+
----
426+
camel.ssl.key-managers.key-store.password=changeit
427+
camel.ssl.key-managers.key-store.resource=server.p12
428+
camel.ssl.trust-managers.key-store.password=changeit
429+
camel.ssl.trust-managers.key-store.resource=truststore.p12
430+
----
431+
====
432+
382433
== Post-Quantum Cryptography (PQC) TLS Configuration
383434

384435
Starting with Camel 4.19, Apache Camel supports Post-Quantum Cryptography (PQC) at the TLS transport layer.

0 commit comments

Comments
 (0)