This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git


The following commit(s) were added to refs/heads/main by this push:
     new d8ace242d Fix #3374: new pgp-encrypt-action and pgp-decrypt-action 
Kamelets, OpenPGP encryption and signing of files exchanged with partners 
(#3382)
d8ace242d is described below

commit d8ace242d5f6a743ad13596740f192e5e1b7eeb2
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Nov 23 18:27:30 2026 +0100

    Fix #3374: new pgp-encrypt-action and pgp-decrypt-action Kamelets, OpenPGP 
encryption and signing of files exchanged with partners (#3382)
    
    * Fix #3374: new pgp-encrypt-action and pgp-decrypt-action Kamelets, 
OpenPGP encryption and signing of files exchanged with partners
    
    pgp-encrypt-action encrypts the body with the Camel pgp data format 
(camel-crypto-pgp) for the public
    key of a recipient (publicKeyRing, keyUserId), binary or armored, and signs 
it when signingKeyRing,
    signingKeyUserId and signingPassphrase are set. It encrypts with AES-256 
and signs with SHA-256, not
    the CAST5 and SHA-1 defaults of the data format, always with the integrity 
packet, and sets
    Content-Type application/pgp-encrypted.
    
    pgp-decrypt-action decrypts with a secret key ring and its passphrase 
(secretKeyRing, passphrase) and
    checks the signature against verificationKeyRing when it is set: 
signatureVerification required (the
    default) or optional. Integrity protection is required. It sets 
Content-Type application/octet-stream.
    
    The key rings are file:, classpath: or base64: resources. Both Kamelets 
remove the
    CamelPGPDataFormat* headers before and after the data format, as it reads 
the key ring, the key ring
    bytes, the user ids, the passphrases and the algorithms from them before 
its options. Both are
    Preview.
    
    The Citrus tests (CommonIT, package pgp) use test-only RSA key pairs made 
with gpg (alice, bob) and
    check: an armored round trip whose CamelPGPDataFormat* headers name another 
key; a binary message
    signed by bob with the public key ring as base64: text and the signature 
checked; a message made by
    gpg, decrypted with and without its signature checked; and the failures: 
the wrong key, a signer that
    is not trusted, an unsigned message when a signature is required (and 
accepted when optional), a
    changed message, a message without integrity protection, and a message in 
the OCB format of gpg 2.4+,
    which the pgp data format does not accept yet.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
    
    * Fix #3374: pgp-decrypt-action decrypts the OCB messages of GnuPG 2.4 and 
later (CAMEL-27449)
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
    
    * chore: regenerate the catalog files after merging main
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
    
    ---------
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 .../camel-kamelets-catalog-sbom.json               |  32 ++-
 docs/modules/ROOT/nav.adoc                         |   2 +
 kamelets/pgp-decrypt-action.kamelet.yaml           | 130 +++++++++
 kamelets/pgp-encrypt-action.kamelet.yaml           | 143 ++++++++++
 .../src/test/resources/remove-headers/kamelets.csv |   2 +
 .../main/resources/META-INF/kamelets-index.json    |  20 ++
 .../kamelets/pgp-decrypt-action.kamelet.yaml       | 130 +++++++++
 .../kamelets/pgp-encrypt-action.kamelet.yaml       | 143 ++++++++++
 .../src/test/java/CommonIT.java                    |   5 +
 .../src/test/resources/pgp/invoice-from-gpg.asc    |  21 ++
 .../test/resources/pgp/invoice-ocb-from-gpg.asc    |  21 ++
 .../src/test/resources/pgp/invoice-tampered.asc    |  21 ++
 .../src/test/resources/pgp/keys/alice-public.asc   |  32 +++
 .../src/test/resources/pgp/keys/alice-secret.asc   |  61 +++++
 .../src/test/resources/pgp/keys/bob-public.asc     |  32 +++
 .../src/test/resources/pgp/keys/bob-secret.asc     |  61 +++++
 .../src/test/resources/pgp/pgp-action-route.yaml   | 296 +++++++++++++++++++++
 .../test/resources/pgp/pgp-action.citrus.it.yaml   | 110 ++++++++
 18 files changed, 1261 insertions(+), 1 deletion(-)

diff --git a/camel-kamelets-sbom/camel-kamelets-catalog-sbom.json 
b/camel-kamelets-sbom/camel-kamelets-catalog-sbom.json
index b54713f07..23e254ab9 100644
--- a/camel-kamelets-sbom/camel-kamelets-catalog-sbom.json
+++ b/camel-kamelets-sbom/camel-kamelets-catalog-sbom.json
@@ -886,6 +886,16 @@
     "type" : "library",
     "name" : "pdf-action",
     "version" : "4.24.0-SNAPSHOT"
+  }, {
+    "bom-ref" : "kamelet:pgp-decrypt-action",
+    "type" : "library",
+    "name" : "pgp-decrypt-action",
+    "version" : "4.24.0-SNAPSHOT"
+  }, {
+    "bom-ref" : "kamelet:pgp-encrypt-action",
+    "type" : "library",
+    "name" : "pgp-encrypt-action",
+    "version" : "4.24.0-SNAPSHOT"
   }, {
     "bom-ref" : "kamelet:postgresql-sink",
     "type" : "library",
@@ -1581,6 +1591,17 @@
       "name" : "camel.apache.org/versioned-by",
       "value" : "runtime"
     } ]
+  }, {
+    "bom-ref" : "pkg:maven/org.apache.camel/[email protected]",
+    "type" : "library",
+    "group" : "org.apache.camel",
+    "name" : "camel-crypto-pgp",
+    "version" : "4.24.0-SNAPSHOT",
+    "purl" : "pkg:maven/org.apache.camel/[email protected]",
+    "properties" : [ {
+      "name" : "camel.apache.org/versioned-by",
+      "value" : "runtime"
+    } ]
   }, {
     "bom-ref" : "pkg:maven/org.apache.camel/[email protected]",
     "type" : "library",
@@ -2547,7 +2568,7 @@
   } ],
   "dependencies" : [ {
     "ref" : "camel-kamelets-catalog",
-    "dependsOn" : [ "kamelet:ai-tool-source", 
"kamelet:avro-deserialize-action", "kamelet:avro-serialize-action", 
"kamelet:aws-bedrock-agent-runtime-sink", "kamelet:aws-bedrock-agent-sink", 
"kamelet:aws-bedrock-text-sink", "kamelet:aws-cloudtrail-source", 
"kamelet:aws-cloudwatch-sink", "kamelet:aws-comprehend-sink", 
"kamelet:aws-ddb-sink", "kamelet:aws-ddb-streams-source", 
"kamelet:aws-ec2-sink", "kamelet:aws-eventbridge-sink", 
"kamelet:aws-eventbridge-source", "kamelet:aws-kinesis-fireh [...]
+    "dependsOn" : [ "kamelet:ai-tool-source", 
"kamelet:avro-deserialize-action", "kamelet:avro-serialize-action", 
"kamelet:aws-bedrock-agent-runtime-sink", "kamelet:aws-bedrock-agent-sink", 
"kamelet:aws-bedrock-text-sink", "kamelet:aws-cloudtrail-source", 
"kamelet:aws-cloudwatch-sink", "kamelet:aws-comprehend-sink", 
"kamelet:aws-ddb-sink", "kamelet:aws-ddb-streams-source", 
"kamelet:aws-ec2-sink", "kamelet:aws-eventbridge-sink", 
"kamelet:aws-eventbridge-source", "kamelet:aws-kinesis-fireh [...]
   }, {
     "ref" : "kamelet:ai-tool-source",
     "dependsOn" : [ 
"pkg:maven/org.apache.camel/[email protected]", 
"pkg:maven/org.apache.camel/[email protected]" ]
@@ -3073,6 +3094,12 @@
   }, {
     "ref" : "kamelet:pdf-action",
     "dependsOn" : [ 
"pkg:maven/org.apache.camel/[email protected]", 
"pkg:maven/org.apache.camel/[email protected]" ]
+  }, {
+    "ref" : "kamelet:pgp-decrypt-action",
+    "dependsOn" : [ 
"pkg:maven/org.apache.camel/[email protected]", 
"pkg:maven/org.apache.camel/[email protected]" ]
+  }, {
+    "ref" : "kamelet:pgp-encrypt-action",
+    "dependsOn" : [ 
"pkg:maven/org.apache.camel/[email protected]", 
"pkg:maven/org.apache.camel/[email protected]" ]
   }, {
     "ref" : "kamelet:postgresql-sink",
     "dependsOn" : [ 
"pkg:maven/org.apache.camel/[email protected]", 
"pkg:maven/org.apache.camel/[email protected]", 
"pkg:maven/org.apache.camel/[email protected]", 
"pkg:maven/org.apache.commons/[email protected]", 
"pkg:maven/org.postgresql/[email protected]" ]
@@ -3376,6 +3403,9 @@
   }, {
     "ref" : "pkg:maven/org.apache.camel/[email protected]",
     "dependsOn" : [ ]
+  }, {
+    "ref" : "pkg:maven/org.apache.camel/[email protected]",
+    "dependsOn" : [ ]
   }, {
     "ref" : "pkg:maven/org.apache.camel/[email protected]",
     "dependsOn" : [ ]
diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 99263a12c..1e971611d 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -174,6 +174,8 @@
 * xref:oracle-database-sink.adoc[]
 * xref:oracle-database-source.adoc[]
 * xref:pdf-action.adoc[]
+* xref:pgp-decrypt-action.adoc[]
+* xref:pgp-encrypt-action.adoc[]
 * xref:postgresql-sink.adoc[]
 * xref:postgresql-source.adoc[]
 * xref:pqc-kem-action.adoc[]
diff --git a/kamelets/pgp-decrypt-action.kamelet.yaml 
b/kamelets/pgp-decrypt-action.kamelet.yaml
new file mode 100644
index 000000000..851117717
--- /dev/null
+++ b/kamelets/pgp-decrypt-action.kamelet.yaml
@@ -0,0 +1,130 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+apiVersion: camel.apache.org/v1
+kind: Kamelet
+metadata:
+  name: pgp-decrypt-action
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
+    camel.apache.org/kamelet.icon: 
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MjAiCmhlaWdodD0iNDIwIiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiPgo8cGF0aCBzdHJva2Utd2lkdGg9IjI2IgpkPSJNMjA5LDE1YTE5NSwxOTUgMCAxLDAgMiwweiIvPgo8cGF0aCBzdHJva2Utd2lkdGg9IjE4IgpkPSJtMjEwLDE1djM5MG0xOTUtMTk1SDE1TTU5LDkwYTI2MCwyNjAgMCAwLDAgMzAyLDAgbTAsMjQwIGEyNjAsMjYwIDAgMCwwLTMwMiwwTTE5NSwyMGEyNTAsMjUwIDAgMCwwIDAsMzgyIG0zMC
 [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Actions"
+    camel.apache.org/kamelet.namespace: "Transformation"
+  labels:
+    camel.apache.org/kamelet.type: "action"
+    camel.apache.org/kamelet.verified: "true"
+spec:
+  definition:
+    title: "PGP Decrypt Action"
+    description: |-
+      Decrypts the OpenPGP message in the body of each message with your 
secret key, and can check its signature against the public key of the sender.
+
+      Use it to decrypt a file that a partner encrypted for you with gpg or 
`pgp-encrypt-action`, for example after reading it with `sftp-source`, 
`ftp-source` or `aws-s3-source`, and to make sure that it comes from that 
partner.
+
+      Input: an OpenPGP message, binary or ASCII armored (it starts with 
`-----BEGIN PGP MESSAGE-----`), as bytes, text, a stream or a file.
+
+      Output: the body is the decrypted data, as a stream, and the 
`Content-Type` header is set to `application/octet-stream`. The other headers 
are kept.
+
+      Good to know: a message that was not encrypted for a key in 
`secretKeyRing`, a wrong passphrase (the error says "checksum mismatch"), or a 
message that was changed on the way fails. A message without integrity 
protection fails too (the error says "not integrity protected"). Messages in 
the newer OCB format, which GnuPG 2.4 and later write for a key made with GnuPG 
2.4 or later, are integrity protected and decrypt. When `verificationKeyRing` 
is set, a message must be signed by a key [...]
+    required:
+      - secretKeyRing
+      - passphrase
+    type: object
+    properties:
+      secretKeyRing:
+        title: Secret Key Ring
+        description: "Where to load your secret key ring from: `file:` 
followed by the path of a file, `classpath:` followed by a resource in the 
application, or `base64:` followed by the key ring itself, in Base64. A key 
ring exported with `gpg --export-secret-keys`, binary or armored, fits. The key 
to decrypt with is the one the message was encrypted for."
+        type: string
+        example: "file:/etc/keys/my-secret.gpg"
+        pattern: "^(file|classpath|base64):.+"
+      passphrase:
+        title: Passphrase
+        description: "The passphrase of your secret key."
+        type: string
+        format: password
+        x-descriptors:
+          - urn:camel:group:credentials
+      verificationKeyRing:
+        title: Verification Key Ring
+        description: "Where to load the public key ring of the senders you 
trust from, to check the signature of each message: `file:`, `classpath:` or 
`base64:`, as for `secretKeyRing`. A key ring exported with `gpg --export` 
fits. A message signed by a key that is not in it fails. When it is not set, a 
signature is not checked."
+        type: string
+        example: "file:/etc/keys/partner-public.gpg"
+        pattern: "^(file|classpath|base64):.+"
+      signatureVerification:
+        title: Signature Verification
+        description: "Only used when `verificationKeyRing` is set. `required`: 
a message must be signed by a key of `verificationKeyRing`. `optional`: an 
unsigned message is accepted too, but a signed message must still be signed by 
a key of `verificationKeyRing`."
+        type: string
+        enum:
+          - required
+          - optional
+        default: required
+  dataTypes:
+    # No 'default:' here on purpose: a default would read the whole body into 
memory first, while the
+    # PGP data format reads a file or a stream as it decrypts it.
+    in:
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The OpenPGP message, binary or ASCII armored: bytes, 
text, a stream or a file."
+          mediaType: application/octet-stream
+    out:
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The decrypted data, as a stream."
+          mediaType: application/octet-stream
+  dependencies:
+    - "camel:kamelet"
+    - "camel:crypto-pgp"
+  template:
+    from:
+      uri: kamelet:source
+      steps:
+        # the PGP data format reads the key ring, the user id and the 
passphrase from these headers before
+        # its options: the message must not choose them
+        - removeHeaders:
+            pattern: "CamelPGPDataFormat*"
+        - choice:
+            precondition: true
+            when:
+              - expression:
+                  simple:
+                    expression: "${propertiesExist:verificationKeyRing}"
+                steps:
+                  - unmarshal:
+                      pgp:
+                        keyFileName: "{{secretKeyRing}}"
+                        password: "{{passphrase}}"
+                        signatureKeyFileName: "{{verificationKeyRing}}"
+                        signatureVerificationOption: 
"{{signatureVerification}}"
+                        requireIntegrityProtection: "true"
+            otherwise:
+              steps:
+                - unmarshal:
+                    pgp:
+                      keyFileName: "{{secretKeyRing}}"
+                      password: "{{passphrase}}"
+                      signatureVerificationOption: "ignore"
+                      requireIntegrityProtection: "true"
+        - removeHeaders:
+            pattern: "CamelPGPDataFormat*"
+        - setHeader:
+            name: Content-Type
+            expression:
+              constant:
+                expression: application/octet-stream
diff --git a/kamelets/pgp-encrypt-action.kamelet.yaml 
b/kamelets/pgp-encrypt-action.kamelet.yaml
new file mode 100644
index 000000000..b2e4136a5
--- /dev/null
+++ b/kamelets/pgp-encrypt-action.kamelet.yaml
@@ -0,0 +1,143 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+apiVersion: camel.apache.org/v1
+kind: Kamelet
+metadata:
+  name: pgp-encrypt-action
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
+    camel.apache.org/kamelet.icon: 
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MjAiCmhlaWdodD0iNDIwIiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiPgo8cGF0aCBzdHJva2Utd2lkdGg9IjI2IgpkPSJNMjA5LDE1YTE5NSwxOTUgMCAxLDAgMiwweiIvPgo8cGF0aCBzdHJva2Utd2lkdGg9IjE4IgpkPSJtMjEwLDE1djM5MG0xOTUtMTk1SDE1TTU5LDkwYTI2MCwyNjAgMCAwLDAgMzAyLDAgbTAsMjQwIGEyNjAsMjYwIDAgMCwwLTMwMiwwTTE5NSwyMGEyNTAsMjUwIDAgMCwwIDAsMzgyIG0zMC
 [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Actions"
+    camel.apache.org/kamelet.namespace: "Transformation"
+  labels:
+    camel.apache.org/kamelet.type: "action"
+    camel.apache.org/kamelet.verified: "true"
+spec:
+  definition:
+    title: "PGP Encrypt Action"
+    description: |-
+      Encrypts the body of each message with OpenPGP for the public key of a 
recipient, and can also sign it, as GnuPG (gpg) does.
+
+      Use it to encrypt a file before you send it to a partner, for example 
with `sftp-sink`, `ftp-sink` or `aws-s3-sink`, when the partner gave you their 
public key. The partner decrypts it with gpg, or with `pgp-decrypt-action`.
+
+      Input: any body: text, bytes, a stream or a file.
+
+      Output: the body is the OpenPGP message, as a stream: binary, or ASCII 
text that starts with `-----BEGIN PGP MESSAGE-----` when `armored` is true. The 
`Content-Type` header is set to `application/pgp-encrypted`. The other headers 
are kept.
+
+      Good to know: the data is compressed, encrypted with AES-256 and 
protected against changes. When `signingKeyRing` is set, the message is also 
signed with your secret key, with SHA-256, so the recipient can check that it 
comes from you. The keys and the passphrase come only from the options: the 
headers of the message, such as `CamelPGPDataFormatKeyUserid`, are removed 
first, so a message cannot choose another key. The file name in the 
`CamelFileName` header, which file sources set, [...]
+    required:
+      - publicKeyRing
+      - keyUserId
+    type: object
+    properties:
+      publicKeyRing:
+        title: Public Key Ring
+        description: "Where to load the public key ring of the recipient from: 
`file:` followed by the path of a file, `classpath:` followed by a resource in 
the application, or `base64:` followed by the key ring itself, in Base64. A key 
ring exported with `gpg --export`, binary or armored, fits."
+        type: string
+        example: "file:/etc/keys/partner-public.gpg"
+        pattern: "^(file|classpath|base64):.+"
+      keyUserId:
+        title: Key User ID
+        description: "Which key of the key ring to encrypt for: its user id, 
such as `Partner Ltd <[email protected]>`, or a part of it, such as the 
email address. The message is encrypted for every key whose user id contains 
this text."
+        type: string
+        example: "[email protected]"
+      armored:
+        title: Armored
+        description: "Whether to write the message as ASCII text (armored), 
which fits where only text is allowed, such as an email or a JSON field, 
instead of binary. Armored text is about a third larger."
+        type: boolean
+        default: false
+      signingKeyRing:
+        title: Signing Key Ring
+        description: "Where to load your secret key ring from, to sign the 
message: `file:`, `classpath:` or `base64:`, as for `publicKeyRing`. A key ring 
exported with `gpg --export-secret-keys` fits. When it is not set, the message 
is not signed. Requires `signingKeyUserId` and `signingPassphrase`."
+        type: string
+        example: "file:/etc/keys/my-secret.gpg"
+        pattern: "^(file|classpath|base64):.+"
+      signingKeyUserId:
+        title: Signing Key User ID
+        description: "Which key of `signingKeyRing` to sign with: its user id, 
or a part of it, such as the email address. Required when `signingKeyRing` is 
set."
+        type: string
+        example: "[email protected]"
+      signingPassphrase:
+        title: Signing Passphrase
+        description: "The passphrase of the secret key to sign with. Required 
when `signingKeyRing` is set."
+        type: string
+        format: password
+        x-descriptors:
+          - urn:camel:group:credentials
+  dataTypes:
+    # No 'default:' here on purpose: a default would read the whole body into 
memory first, while the
+    # PGP data format reads a file or a stream as it encrypts it.
+    in:
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The data to encrypt: text, bytes, a stream or a file."
+          mediaType: application/octet-stream
+    out:
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The OpenPGP message, as a stream: binary, or ASCII 
armored text when `armored` is true."
+          mediaType: application/pgp-encrypted
+  dependencies:
+    - "camel:kamelet"
+    - "camel:crypto-pgp"
+  template:
+    from:
+      uri: kamelet:source
+      steps:
+        # the PGP data format reads the key ring, the user id, the passphrase 
and the algorithms from these
+        # headers before its options: the message must not choose them
+        - removeHeaders:
+            pattern: "CamelPGPDataFormat*"
+        - choice:
+            precondition: true
+            when:
+              - expression:
+                  simple:
+                    expression: "${propertiesExist:signingKeyRing}"
+                steps:
+                  - marshal:
+                      pgp:
+                        keyFileName: "{{publicKeyRing}}"
+                        keyUserid: "{{keyUserId}}"
+                        armored: "{{armored}}"
+                        integrity: "true"
+                        # AES-256 and SHA-256, not the defaults of the data 
format (CAST5 and SHA-1)
+                        algorithm: "9"
+                        signatureKeyFileName: "{{signingKeyRing}}"
+                        signatureKeyUserid: "{{signingKeyUserId}}"
+                        signaturePassword: "{{signingPassphrase}}"
+                        hashAlgorithm: "8"
+            otherwise:
+              steps:
+                - marshal:
+                    pgp:
+                      keyFileName: "{{publicKeyRing}}"
+                      keyUserid: "{{keyUserId}}"
+                      armored: "{{armored}}"
+                      integrity: "true"
+                      algorithm: "9"
+        - removeHeaders:
+            pattern: "CamelPGPDataFormat*"
+        - setHeader:
+            name: Content-Type
+            expression:
+              constant:
+                expression: application/pgp-encrypted
diff --git 
a/library/camel-kamelets-catalog/src/test/resources/remove-headers/kamelets.csv 
b/library/camel-kamelets-catalog/src/test/resources/remove-headers/kamelets.csv
index 4c89c3937..8569eba2f 100644
--- 
a/library/camel-kamelets-catalog/src/test/resources/remove-headers/kamelets.csv
+++ 
b/library/camel-kamelets-catalog/src/test/resources/remove-headers/kamelets.csv
@@ -82,6 +82,8 @@ 
nominatim-geocode-action,CamelGeoCoder*,,CamelGeoCoderRegionName,
 ogcapi-features-action,Camel(Rest)?Http.*,,CamelRestHttpUri,
 opensearch-index-sink,CamelOpensearch*,,CamelOpensearchOperation,
 pdf-action,CamelPdf*,,CamelPdfProtectionPolicy,
+pgp-decrypt-action,CamelPGPDataFormat*,,CamelPGPDataFormatKeyFileName,
+pgp-encrypt-action,CamelPGPDataFormat*,,CamelPGPDataFormatKeyUserid,
 pqc-kem-action,CamelPQC*,,CamelPQCOperation,
 
pqc-signature-action,CamelPQC*,CamelPQCSignature,CamelPQCOperation,CamelPQCSignature
 
pulsar-sink,CamelPulsar*,CamelPulsarProducerMessage(Key|Properties),CamelPulsarProducerMessageEventTime,CamelPulsarProducerMessageKey|CamelPulsarProducerMessageProperties
diff --git 
a/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json 
b/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
index b11af2a79..16c756a17 100644
--- a/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
+++ b/library/camel-kamelets/src/main/resources/META-INF/kamelets-index.json
@@ -1749,6 +1749,26 @@
     "group" : "PDF",
     "namespace" : "Transformation",
     "provider" : "Apache Software Foundation"
+  }, {
+    "name" : "pgp-decrypt-action",
+    "type" : "action",
+    "supportLevel" : "Preview",
+    "title" : "PGP Decrypt Action",
+    "summary" : "Decrypts the OpenPGP message in the body of each message with 
your secret key, and can check its signature against the public key of the 
sender.",
+    "description" : "Decrypts the OpenPGP message in the body of each message 
with your secret key, and can check its signature against the public key of the 
sender.\n\nUse it to decrypt a file that a partner encrypted for you with gpg 
or `pgp-encrypt-action`, for example after reading it with `sftp-source`, 
`ftp-source` or `aws-s3-source`, and to make sure that it comes from that 
partner.\n\nInput: an OpenPGP message, binary or ASCII armored (it starts with 
`-----BEGIN PGP MESSAGE-----` [...]
+    "group" : "Actions",
+    "namespace" : "Transformation",
+    "provider" : "Apache Software Foundation"
+  }, {
+    "name" : "pgp-encrypt-action",
+    "type" : "action",
+    "supportLevel" : "Preview",
+    "title" : "PGP Encrypt Action",
+    "summary" : "Encrypts the body of each message with OpenPGP for the public 
key of a recipient, and can also sign it, as GnuPG (gpg) does.",
+    "description" : "Encrypts the body of each message with OpenPGP for the 
public key of a recipient, and can also sign it, as GnuPG (gpg) does.\n\nUse it 
to encrypt a file before you send it to a partner, for example with 
`sftp-sink`, `ftp-sink` or `aws-s3-sink`, when the partner gave you their 
public key. The partner decrypts it with gpg, or with 
`pgp-decrypt-action`.\n\nInput: any body: text, bytes, a stream or a 
file.\n\nOutput: the body is the OpenPGP message, as a stream: binary,  [...]
+    "group" : "Actions",
+    "namespace" : "Transformation",
+    "provider" : "Apache Software Foundation"
   }, {
     "name" : "postgresql-sink",
     "type" : "sink",
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/pgp-decrypt-action.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/pgp-decrypt-action.kamelet.yaml
new file mode 100644
index 000000000..851117717
--- /dev/null
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/pgp-decrypt-action.kamelet.yaml
@@ -0,0 +1,130 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+apiVersion: camel.apache.org/v1
+kind: Kamelet
+metadata:
+  name: pgp-decrypt-action
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
+    camel.apache.org/kamelet.icon: 
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MjAiCmhlaWdodD0iNDIwIiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiPgo8cGF0aCBzdHJva2Utd2lkdGg9IjI2IgpkPSJNMjA5LDE1YTE5NSwxOTUgMCAxLDAgMiwweiIvPgo8cGF0aCBzdHJva2Utd2lkdGg9IjE4IgpkPSJtMjEwLDE1djM5MG0xOTUtMTk1SDE1TTU5LDkwYTI2MCwyNjAgMCAwLDAgMzAyLDAgbTAsMjQwIGEyNjAsMjYwIDAgMCwwLTMwMiwwTTE5NSwyMGEyNTAsMjUwIDAgMCwwIDAsMzgyIG0zMC
 [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Actions"
+    camel.apache.org/kamelet.namespace: "Transformation"
+  labels:
+    camel.apache.org/kamelet.type: "action"
+    camel.apache.org/kamelet.verified: "true"
+spec:
+  definition:
+    title: "PGP Decrypt Action"
+    description: |-
+      Decrypts the OpenPGP message in the body of each message with your 
secret key, and can check its signature against the public key of the sender.
+
+      Use it to decrypt a file that a partner encrypted for you with gpg or 
`pgp-encrypt-action`, for example after reading it with `sftp-source`, 
`ftp-source` or `aws-s3-source`, and to make sure that it comes from that 
partner.
+
+      Input: an OpenPGP message, binary or ASCII armored (it starts with 
`-----BEGIN PGP MESSAGE-----`), as bytes, text, a stream or a file.
+
+      Output: the body is the decrypted data, as a stream, and the 
`Content-Type` header is set to `application/octet-stream`. The other headers 
are kept.
+
+      Good to know: a message that was not encrypted for a key in 
`secretKeyRing`, a wrong passphrase (the error says "checksum mismatch"), or a 
message that was changed on the way fails. A message without integrity 
protection fails too (the error says "not integrity protected"). Messages in 
the newer OCB format, which GnuPG 2.4 and later write for a key made with GnuPG 
2.4 or later, are integrity protected and decrypt. When `verificationKeyRing` 
is set, a message must be signed by a key [...]
+    required:
+      - secretKeyRing
+      - passphrase
+    type: object
+    properties:
+      secretKeyRing:
+        title: Secret Key Ring
+        description: "Where to load your secret key ring from: `file:` 
followed by the path of a file, `classpath:` followed by a resource in the 
application, or `base64:` followed by the key ring itself, in Base64. A key 
ring exported with `gpg --export-secret-keys`, binary or armored, fits. The key 
to decrypt with is the one the message was encrypted for."
+        type: string
+        example: "file:/etc/keys/my-secret.gpg"
+        pattern: "^(file|classpath|base64):.+"
+      passphrase:
+        title: Passphrase
+        description: "The passphrase of your secret key."
+        type: string
+        format: password
+        x-descriptors:
+          - urn:camel:group:credentials
+      verificationKeyRing:
+        title: Verification Key Ring
+        description: "Where to load the public key ring of the senders you 
trust from, to check the signature of each message: `file:`, `classpath:` or 
`base64:`, as for `secretKeyRing`. A key ring exported with `gpg --export` 
fits. A message signed by a key that is not in it fails. When it is not set, a 
signature is not checked."
+        type: string
+        example: "file:/etc/keys/partner-public.gpg"
+        pattern: "^(file|classpath|base64):.+"
+      signatureVerification:
+        title: Signature Verification
+        description: "Only used when `verificationKeyRing` is set. `required`: 
a message must be signed by a key of `verificationKeyRing`. `optional`: an 
unsigned message is accepted too, but a signed message must still be signed by 
a key of `verificationKeyRing`."
+        type: string
+        enum:
+          - required
+          - optional
+        default: required
+  dataTypes:
+    # No 'default:' here on purpose: a default would read the whole body into 
memory first, while the
+    # PGP data format reads a file or a stream as it decrypts it.
+    in:
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The OpenPGP message, binary or ASCII armored: bytes, 
text, a stream or a file."
+          mediaType: application/octet-stream
+    out:
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The decrypted data, as a stream."
+          mediaType: application/octet-stream
+  dependencies:
+    - "camel:kamelet"
+    - "camel:crypto-pgp"
+  template:
+    from:
+      uri: kamelet:source
+      steps:
+        # the PGP data format reads the key ring, the user id and the 
passphrase from these headers before
+        # its options: the message must not choose them
+        - removeHeaders:
+            pattern: "CamelPGPDataFormat*"
+        - choice:
+            precondition: true
+            when:
+              - expression:
+                  simple:
+                    expression: "${propertiesExist:verificationKeyRing}"
+                steps:
+                  - unmarshal:
+                      pgp:
+                        keyFileName: "{{secretKeyRing}}"
+                        password: "{{passphrase}}"
+                        signatureKeyFileName: "{{verificationKeyRing}}"
+                        signatureVerificationOption: 
"{{signatureVerification}}"
+                        requireIntegrityProtection: "true"
+            otherwise:
+              steps:
+                - unmarshal:
+                    pgp:
+                      keyFileName: "{{secretKeyRing}}"
+                      password: "{{passphrase}}"
+                      signatureVerificationOption: "ignore"
+                      requireIntegrityProtection: "true"
+        - removeHeaders:
+            pattern: "CamelPGPDataFormat*"
+        - setHeader:
+            name: Content-Type
+            expression:
+              constant:
+                expression: application/octet-stream
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/pgp-encrypt-action.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/pgp-encrypt-action.kamelet.yaml
new file mode 100644
index 000000000..b2e4136a5
--- /dev/null
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/pgp-encrypt-action.kamelet.yaml
@@ -0,0 +1,143 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+apiVersion: camel.apache.org/v1
+kind: Kamelet
+metadata:
+  name: pgp-encrypt-action
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "4.24.0-SNAPSHOT"
+    camel.apache.org/kamelet.icon: 
"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MjAiCmhlaWdodD0iNDIwIiBzdHJva2U9IiMwMDAiIGZpbGw9Im5vbmUiPgo8cGF0aCBzdHJva2Utd2lkdGg9IjI2IgpkPSJNMjA5LDE1YTE5NSwxOTUgMCAxLDAgMiwweiIvPgo8cGF0aCBzdHJva2Utd2lkdGg9IjE4IgpkPSJtMjEwLDE1djM5MG0xOTUtMTk1SDE1TTU5LDkwYTI2MCwyNjAgMCAwLDAgMzAyLDAgbTAsMjQwIGEyNjAsMjYwIDAgMCwwLTMwMiwwTTE5NSwyMGEyNTAsMjUwIDAgMCwwIDAsMzgyIG0zMC
 [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Actions"
+    camel.apache.org/kamelet.namespace: "Transformation"
+  labels:
+    camel.apache.org/kamelet.type: "action"
+    camel.apache.org/kamelet.verified: "true"
+spec:
+  definition:
+    title: "PGP Encrypt Action"
+    description: |-
+      Encrypts the body of each message with OpenPGP for the public key of a 
recipient, and can also sign it, as GnuPG (gpg) does.
+
+      Use it to encrypt a file before you send it to a partner, for example 
with `sftp-sink`, `ftp-sink` or `aws-s3-sink`, when the partner gave you their 
public key. The partner decrypts it with gpg, or with `pgp-decrypt-action`.
+
+      Input: any body: text, bytes, a stream or a file.
+
+      Output: the body is the OpenPGP message, as a stream: binary, or ASCII 
text that starts with `-----BEGIN PGP MESSAGE-----` when `armored` is true. The 
`Content-Type` header is set to `application/pgp-encrypted`. The other headers 
are kept.
+
+      Good to know: the data is compressed, encrypted with AES-256 and 
protected against changes. When `signingKeyRing` is set, the message is also 
signed with your secret key, with SHA-256, so the recipient can check that it 
comes from you. The keys and the passphrase come only from the options: the 
headers of the message, such as `CamelPGPDataFormatKeyUserid`, are removed 
first, so a message cannot choose another key. The file name in the 
`CamelFileName` header, which file sources set, [...]
+    required:
+      - publicKeyRing
+      - keyUserId
+    type: object
+    properties:
+      publicKeyRing:
+        title: Public Key Ring
+        description: "Where to load the public key ring of the recipient from: 
`file:` followed by the path of a file, `classpath:` followed by a resource in 
the application, or `base64:` followed by the key ring itself, in Base64. A key 
ring exported with `gpg --export`, binary or armored, fits."
+        type: string
+        example: "file:/etc/keys/partner-public.gpg"
+        pattern: "^(file|classpath|base64):.+"
+      keyUserId:
+        title: Key User ID
+        description: "Which key of the key ring to encrypt for: its user id, 
such as `Partner Ltd <[email protected]>`, or a part of it, such as the 
email address. The message is encrypted for every key whose user id contains 
this text."
+        type: string
+        example: "[email protected]"
+      armored:
+        title: Armored
+        description: "Whether to write the message as ASCII text (armored), 
which fits where only text is allowed, such as an email or a JSON field, 
instead of binary. Armored text is about a third larger."
+        type: boolean
+        default: false
+      signingKeyRing:
+        title: Signing Key Ring
+        description: "Where to load your secret key ring from, to sign the 
message: `file:`, `classpath:` or `base64:`, as for `publicKeyRing`. A key ring 
exported with `gpg --export-secret-keys` fits. When it is not set, the message 
is not signed. Requires `signingKeyUserId` and `signingPassphrase`."
+        type: string
+        example: "file:/etc/keys/my-secret.gpg"
+        pattern: "^(file|classpath|base64):.+"
+      signingKeyUserId:
+        title: Signing Key User ID
+        description: "Which key of `signingKeyRing` to sign with: its user id, 
or a part of it, such as the email address. Required when `signingKeyRing` is 
set."
+        type: string
+        example: "[email protected]"
+      signingPassphrase:
+        title: Signing Passphrase
+        description: "The passphrase of the secret key to sign with. Required 
when `signingKeyRing` is set."
+        type: string
+        format: password
+        x-descriptors:
+          - urn:camel:group:credentials
+  dataTypes:
+    # No 'default:' here on purpose: a default would read the whole body into 
memory first, while the
+    # PGP data format reads a file or a stream as it encrypts it.
+    in:
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The data to encrypt: text, bytes, a stream or a file."
+          mediaType: application/octet-stream
+    out:
+      types:
+        binary:
+          format: "application-octet-stream"
+          description: "The OpenPGP message, as a stream: binary, or ASCII 
armored text when `armored` is true."
+          mediaType: application/pgp-encrypted
+  dependencies:
+    - "camel:kamelet"
+    - "camel:crypto-pgp"
+  template:
+    from:
+      uri: kamelet:source
+      steps:
+        # the PGP data format reads the key ring, the user id, the passphrase 
and the algorithms from these
+        # headers before its options: the message must not choose them
+        - removeHeaders:
+            pattern: "CamelPGPDataFormat*"
+        - choice:
+            precondition: true
+            when:
+              - expression:
+                  simple:
+                    expression: "${propertiesExist:signingKeyRing}"
+                steps:
+                  - marshal:
+                      pgp:
+                        keyFileName: "{{publicKeyRing}}"
+                        keyUserid: "{{keyUserId}}"
+                        armored: "{{armored}}"
+                        integrity: "true"
+                        # AES-256 and SHA-256, not the defaults of the data 
format (CAST5 and SHA-1)
+                        algorithm: "9"
+                        signatureKeyFileName: "{{signingKeyRing}}"
+                        signatureKeyUserid: "{{signingKeyUserId}}"
+                        signaturePassword: "{{signingPassphrase}}"
+                        hashAlgorithm: "8"
+            otherwise:
+              steps:
+                - marshal:
+                    pgp:
+                      keyFileName: "{{publicKeyRing}}"
+                      keyUserid: "{{keyUserId}}"
+                      armored: "{{armored}}"
+                      integrity: "true"
+                      algorithm: "9"
+        - removeHeaders:
+            pattern: "CamelPGPDataFormat*"
+        - setHeader:
+            name: Content-Type
+            expression:
+              constant:
+                expression: application/pgp-encrypted
diff --git a/tests/camel-kamelets-itest/src/test/java/CommonIT.java 
b/tests/camel-kamelets-itest/src/test/java/CommonIT.java
index 257be333f..a6659f468 100644
--- a/tests/camel-kamelets-itest/src/test/java/CommonIT.java
+++ b/tests/camel-kamelets-itest/src/test/java/CommonIT.java
@@ -78,6 +78,11 @@ public class CommonIT {
         return 
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("crypto");
     }
 
+    @CitrusTestFactory
+    public Stream<DynamicTest> pgp() {
+        return 
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("pgp");
+    }
+
     @CitrusTestFactory
     public Stream<DynamicTest> header() {
         return 
CitrusTestFactorySupport.factory(TestLoader.YAML).packageScan("header");
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/pgp/invoice-from-gpg.asc 
b/tests/camel-kamelets-itest/src/test/resources/pgp/invoice-from-gpg.asc
new file mode 100644
index 000000000..2e0570318
--- /dev/null
+++ b/tests/camel-kamelets-itest/src/test/resources/pgp/invoice-from-gpg.asc
@@ -0,0 +1,21 @@
+-----BEGIN PGP MESSAGE-----
+Comment: TEST MESSAGE ONLY, for the Citrus tests of the PGP Kamelets: made 
with gpg, signed by bob, encrypted for alice.
+
+hQEMA8pRpi3ET4nVAQgAmyBz7KSLv45gU1wpm1AttOFPaMogw/fUqOTc39W9+7F9
+VVeXcCXYjQ8SohyKkz551sZ7azmbq17ci3jApgkMrIEowkTd7S5zh7CqUAx7PfeP
+IQSsHSQBHxB/mtGTBogRmwCFANgQYRZaWwuaMmU7bJhfb4VzYhV8PqWcfcKYSnmg
+otskE7TyjYyiDCWnw8fMDHrbvspCqHVHxxeZhTTmtJSvq3PZ/WDmVGBqtqdYYjI2
+6Sib1AmrCvE499z82RUpb4rEixfIS6b3RUqAP8J9kY8h/M7LxB2HJK2Aa6O5qQqk
+Jq0MLYNFX7joxmXfkK4BlDyRpoYGHv861izGvu2gftLBDQG8FXtvuC46qej0Cgbi
+EIERiIAE9YwNXRXmVHLhued4WuNDLecvM7MKVGGutAUpDAXpyVx2SmAbJtjRNgEr
+IB+qMGv5b2LFZ9XP2vBpyvmU3xYB7cZd1lvqi22QzJBZYT4mQVh/lYO18FBiGbxO
+nlqVE2zLiRI+51R7BwXqv2hUByHmS4iGop5YZJA6BvgWwuri8h2Uc8zHd2C5WgOJ
+oiKfslGNZzRpMLDTIOp4DpKbaAt38p1Np7M1l5gAhgKvJiH5NSmlwNzAz9L2HiNs
+eS/5sr5TLJQmbSfBuFgOVoiZuDtv7JYnSdbhBtlKAJ4pK/TkO/7Em8F/ZWlf/nWh
+OlRueow3OuhMtZhSmJWVuYAX4cZ2iTlzMKpLdP0JowFvlOvv2+GYjdP0gkDGMJQs
+dtHkTUrExprKSv3TZWlZOTQCkUS5geh/dhpUNwI5nx/WLjUuap8VYEx9GCJ6/fqH
+PeBeBaBvY3/MaedJHdlzzpKaWluWtBTbO61+akLfQaQyamM8qIRKXrbW9ZZYH3dy
+uupiMwZUxWCAQVN57UWTKGHp8CizdtnMrnoT+66Uzxm5IwfWx84q3fMZLhLSZm4v
+T4Ox9Dr7Q2mikkJ5kWgb
+=+dgk
+-----END PGP MESSAGE-----
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/pgp/invoice-ocb-from-gpg.asc 
b/tests/camel-kamelets-itest/src/test/resources/pgp/invoice-ocb-from-gpg.asc
new file mode 100644
index 000000000..d3f77deaf
--- /dev/null
+++ b/tests/camel-kamelets-itest/src/test/resources/pgp/invoice-ocb-from-gpg.asc
@@ -0,0 +1,21 @@
+-----BEGIN PGP MESSAGE-----
+Comment: TEST MESSAGE ONLY, for the Citrus tests of the PGP Kamelets: made 
with gpg 2.5 in the OCB format, signed by bob, encrypted for alice.
+
+hQEMA8pRpi3ET4nVAQf+NHiVVVaunAVdvW2BLrwaUjOjsitwja36rvordnHzws3e
+0GDNhvAI564qXljdgUg/lPJ/yWoUf7XlEkOJEUuvT76Pc5aLsstMIVPermon+5Rl
+lQNFcBDTgIyTBw2iQ6zm95DffPPJmPU7zFTfUpmuhEORB6R8H0RHUXkup1+WScPC
+tC7ygI08JEnRL1H6UO15bIrKElcgR9kTUIPHaASPsB2bo6ynGFcnPfNJ8n4qWkfx
+stqfk72rW28LrrJdb47ZWI8vw8a66GIpUFsboDNZG6DwsY7cFebKFvNpD9Efbdkc
+XrFfFryutS3j4I61J6U3gj/2j4wydkht3XXd6hA9jtTBHwEJAhBzN2o8cACHJ6uK
+BG2A4xyAfPtfhtX5MraBlhAkLXgkYQhX/280dnql7UkFR1m9Wcrxdil+1EVTEu5G
+5XmLTTH/EdLj0JQPgiSYGFRpx/+TJAVPUSMIByvYeVaDdr7r8A+c+SJ71+bvY0xE
+3fjnjV3LAjkPeXswdxwL7iQtlFMAyINZKfbfGmoRpEe7gBmFRQJGObcGDN8SkSoe
+JshvVODLdYQogsTX7gi1vvOFGTSYNKniEQIoh0+XvmPvwSbRcUWDmnFXC12BfMbO
+PLmy4cC2ULcZJHCVJjwMONlLvsWJ8OUd6RGYqxaX/S2UUSNOHww2Xzo2iuom0foW
+24LMk8/LpM46tPzdYh4ICO+UDCUUZ+60cSXeiRCrF8WrGylabffDh4ti0/lhD6Rb
+MY/dxaYgKy9NDNWPGDpQKaVN2U159Ec+55k2u2q8NwDg1XbVitUbknOBUYiF5x1a
+4r8+xc37r/j0VDYGapxfghnoyUYr9RWcJxcmL/xtDnoY6w+PTi+Yo9IQOwqcgpln
+3Dbvj1XJQjv3ICqItt9McJyd/zcFnkm07DmJbAkzMAnvFj0q0EEA6CGgbh7eYtwz
+OgBFMwynSzasUHZCByxo0CnwfqJxQfYJqYwxJQ/f2y7G
+=MsdC
+-----END PGP MESSAGE-----
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/pgp/invoice-tampered.asc 
b/tests/camel-kamelets-itest/src/test/resources/pgp/invoice-tampered.asc
new file mode 100644
index 000000000..0e7d0e18b
--- /dev/null
+++ b/tests/camel-kamelets-itest/src/test/resources/pgp/invoice-tampered.asc
@@ -0,0 +1,21 @@
+-----BEGIN PGP MESSAGE-----
+Comment: TEST MESSAGE ONLY: invoice-from-gpg.asc with one bit changed near its 
end.
+
+hQEMA8pRpi3ET4nVAQgAmyBz7KSLv45gU1wpm1AttOFPaMogw/fUqOTc39W9+7F9
+VVeXcCXYjQ8SohyKkz551sZ7azmbq17ci3jApgkMrIEowkTd7S5zh7CqUAx7PfeP
+IQSsHSQBHxB/mtGTBogRmwCFANgQYRZaWwuaMmU7bJhfb4VzYhV8PqWcfcKYSnmg
+otskE7TyjYyiDCWnw8fMDHrbvspCqHVHxxeZhTTmtJSvq3PZ/WDmVGBqtqdYYjI2
+6Sib1AmrCvE499z82RUpb4rEixfIS6b3RUqAP8J9kY8h/M7LxB2HJK2Aa6O5qQqk
+Jq0MLYNFX7joxmXfkK4BlDyRpoYGHv861izGvu2gftLBDQG8FXtvuC46qej0Cgbi
+EIERiIAE9YwNXRXmVHLhued4WuNDLecvM7MKVGGutAUpDAXpyVx2SmAbJtjRNgEr
+IB+qMGv5b2LFZ9XP2vBpyvmU3xYB7cZd1lvqi22QzJBZYT4mQVh/lYO18FBiGbxO
+nlqVE2zLiRI+51R7BwXqv2hUByHmS4iGop5YZJA6BvgWwuri8h2Uc8zHd2C5WgOJ
+oiKfslGNZzRpMLDTIOp4DpKbaAt38p1Np7M1l5gAhgKvJiH5NSmlwNzAz9L2HiNs
+eS/5sr5TLJQmbSfBuFgOVoiZuDtv7JYnSdbhBtlKAJ4pK/TkO/7Em8F/ZWlf/nWh
+OlRueow3OuhMtZhSmJWVuYAX4cZ2iTlzMKpLdP0JowFvlOvv2+GYjdP0gkDGMJQs
+dtHkTUrExprKSv3TZWlZOTQCkUS5geh/dhpUNwI5nx/WLjUuap8VYEx9GCJ6/fqH
+PeBeBaBvY3/MaedJHdlzzpKaWluWtBTbO61+akLfQaQyamM8qIRKXrbW9ZZYH3dy
+uupiMwZUxWCAQVN57UWTKGHp8CizdtnMrnoT+66Uzxm5IwfWx84q3fMZLhLSZm4v
+T4Ox9Dr7Q2mikkJ5kGgb
+=etHz
+-----END PGP MESSAGE-----
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/pgp/keys/alice-public.asc 
b/tests/camel-kamelets-itest/src/test/resources/pgp/keys/alice-public.asc
new file mode 100644
index 000000000..fc1af963c
--- /dev/null
+++ b/tests/camel-kamelets-itest/src/test/resources/pgp/keys/alice-public.asc
@@ -0,0 +1,32 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Comment: TEST KEY ONLY, for the Citrus tests of the PGP Kamelets. Its 
passphrase is public. Never use it for real data.
+
+mQENBGsED0gBCAC8X0+SnADjSSxBwT9HmOS/+CxCw5ciCWuA7aMrycq9CcIrskN8
+EQdLseLpmZq47eog5ryDWStYi9JVCb7e4yKYvgHrMlaTUuI32OsMyfBBfFHtkf64
+wzz+xaLR8S9nhWD2yL+1oR1kDAdDZ+us77fDaKbF1xhVM2DvuGg1y4Zs9ZH+d7Fe
+dq4GXkaEdZBHcaB/yhKUncI9REk5BrzmzjwUsCHUj2c/KleZRqiYwNtWgSluhcso
+BfqYZV/Pd0gU/U2K4uZxGrnMw0gFCaAxUR0C3FK7Kk0BmHA6B5bgwdavxujM7yvA
+Zej9v2xfQCEgCUfRHYc15n+OP71JBB7+GN4rABEBAAG0LGFsaWNlIChLYW1lbGV0
+IHRlc3Qga2V5KSA8YW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/HC31OnsZHJJCO5/ZPWfkHTdo2/4
+ojET2GhAkdjQ5fN/gEJzvrPtqP/rmhReOVZyQMZoiGlGH2ZwniKgkuq01Xg6x73j
+IVw6mMSPPme8fs67DqCMS8OWGIIw7SK/rSCFxS1MaHtZ+AGL8BnnJDL3q6tnJ/lt
+zKtok/SgWc9aSzAJs2/z8GzF7AqOxXpjg25eyCYPhmv1cCtyI7MzFCamLNppdfrk
+OO75UtmX0aNLX1h43h8nPeKvkwyQfTPwoHHR1+xF6OeLMwTA7Zuet73hobqbXw==
+=de+/
+-----END PGP PUBLIC KEY BLOCK-----
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/pgp/keys/alice-secret.asc 
b/tests/camel-kamelets-itest/src/test/resources/pgp/keys/alice-secret.asc
new file mode 100644
index 000000000..3357b4c96
--- /dev/null
+++ b/tests/camel-kamelets-itest/src/test/resources/pgp/keys/alice-secret.asc
@@ -0,0 +1,61 @@
+-----BEGIN PGP PRIVATE KEY BLOCK-----
+Comment: TEST KEY ONLY, for the Citrus tests of the PGP Kamelets. Its 
passphrase is public. Never use it for real data.
+
+lQPGBGsED0gBCAC8X0+SnADjSSxBwT9HmOS/+CxCw5ciCWuA7aMrycq9CcIrskN8
+EQdLseLpmZq47eog5ryDWStYi9JVCb7e4yKYvgHrMlaTUuI32OsMyfBBfFHtkf64
+wzz+xaLR8S9nhWD2yL+1oR1kDAdDZ+us77fDaKbF1xhVM2DvuGg1y4Zs9ZH+d7Fe
+dq4GXkaEdZBHcaB/yhKUncI9REk5BrzmzjwUsCHUj2c/KleZRqiYwNtWgSluhcso
+BfqYZV/Pd0gU/U2K4uZxGrnMw0gFCaAxUR0C3FK7Kk0BmHA6B5bgwdavxujM7yvA
+Zej9v2xfQCEgCUfRHYc15n+OP71JBB7+GN4rABEBAAH+BwMClUCvCNDw4yX/fedS
+dpOOJexHu/lrKlk2gO742Hwf7FtJ8oNhhcn4KSjEgpehaT+Nf746QrH2DzChpQwP
+/E8E/MQCpDB5m0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BLOCK-----
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/pgp/keys/bob-public.asc 
b/tests/camel-kamelets-itest/src/test/resources/pgp/keys/bob-public.asc
new file mode 100644
index 000000000..f4d57271f
--- /dev/null
+++ b/tests/camel-kamelets-itest/src/test/resources/pgp/keys/bob-public.asc
@@ -0,0 +1,32 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Comment: TEST KEY ONLY, for the Citrus tests of the PGP Kamelets. Its 
passphrase is public. Never use it for real data.
+
+mQENBGsED0kBCACoHoJCifsk9I3J2EBHsrSZ0Q3geyY2LXBtgvTqLvwioKzg0Xlw
+s9gH2Twgp82w87jWMLw6p8OdH3f3B0fRLBLa5Jwn8rVD09AaI2IJvlv6iMzTq5fu
+z91XuiqGsnoeacaW+/2u9KLGz1MJClX6VaxR9xK9Xo9OtYy6W9uyUNAtJ4eWSfcN
+vY6k6pERVzKWki+VtqprNqmZaIxJPGqnKy80zb9IFZc46RbgMslxaFXzXKOO0wVN
+ODvmMJUPs6S51rDs19pQ7YSuVXQQJXSOYW4TNhUsC92USHSf7M3SPyoSxhHD+su8
+xbqm5oVGUkoS80sRTJ6QY0U+K1qxIKuLnk+1ABEBAAG0KGJvYiAoS2FtZWxldCB0
+ZXN0IGtleSkgPGJvYkBleGFtcGxlLmNvbT6JAWgEEwEIAFIbFIAAAAAABAAObWFu
+dTIsMi41KzEuMTIsMCwzAhsDAheAFiEES/fpD4v0I289ocHlhpSejwOaCUMFAmsE
+EJcECwkIBwQVCgkIBRYCAwEAAh4FAAoJEIaUno8DmglDnkoH+gNTG4GaTj0aOIZT
+6HYl/O8E1yYF1TGET276N6NyUimhk/9+KhYtPc00huliVapW179V4kJCRkXEoG9Y
+JIMq6pU2n1L3U5P3pugyhbvr6nq6EOV/KGOFbVDg853gHOdvt+UF2aifLcbEbqz/
+YwSe3fI2y+h1w5yXjFHbzvcAD1/nxNjuU0IbrdH8NTt1mPNhHfEfP2ptDkKV98n2
+ujKvM5CytaFbn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src/test/resources/pgp/keys/bob-secret.asc
new file mode 100644
index 000000000..758216d4b
--- /dev/null
+++ b/tests/camel-kamelets-itest/src/test/resources/pgp/keys/bob-secret.asc
@@ -0,0 +1,61 @@
+-----BEGIN PGP PRIVATE KEY BLOCK-----
+Comment: TEST KEY ONLY, for the Citrus tests of the PGP Kamelets. Its 
passphrase is public. Never use it for real data.
+
+lQPGBGsED0kBCACoHoJCifsk9I3J2EBHsrSZ0Q3geyY2LXBtgvTqLvwioKzg0Xlw
+s9gH2Twgp82w87jWMLw6p8OdH3f3B0fRLBLa5Jwn8rVD09AaI2IJvlv6iMzTq5fu
+z91XuiqGsnoeacaW+/2u9KLGz1MJClX6VaxR9xK9Xo9OtYy6W9uyUNAtJ4eWSfcN
+vY6k6pERVzKWki+VtqprNqmZaIxJPGqnKy80zb9IFZc46RbgMslxaFXzXKOO0wVN
+ODvmMJUPs6S51rDs19pQ7YSuVXQQJXSOYW4TNhUsC92USHSf7M3SPyoSxhHD+su8
+xbqm5oVGUkoS80sRTJ6QY0U+K1qxIKuLnk+1ABEBAAH+BwMCV1uNy4dVLB7/uS5e
+mtYWJZ9j4uy5iIjvw5inu465lYWOwfjLTZ2vpTycvbAyGkeQX0XpvXdSvl6KZShE
+aJYU35m1dovQ//kb9qwSpnGaFHmJEj3tNMuB/1352qIpDHiF747NFBWoWq5urYql
+Bdm2sdmJnSoxD+XQnUkVaSvnve8tUnlZlbtN0uxXYJNHMCItPimTOmldww8mvvz6
+POFe1EbdSTJuGvski5bhC/2s/yA2aAi4WQ8PmxV7LmlT4qyyFNXv+uxu4uFxm4DI
+uzfdcLV10mh59jkhRfd1I3lz7vgULHwPCec9DryjnbJ0jhPVnnXxqdtqoiNmIChN
+JjBLhSHzUscBFASCjA7XDraB8NKalNatNrisNeRjJtzjtj/+jqIWc18h72e+Colw
+/q0sDeKHxwVsbgHr+p12ffM2+fPJazDZVdca9955rbKJ6Zj5we4lQjDnJ9pIESXZ
+g4LN6uXZV7lI6TCecMLtS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RFJr7m7ANnKwlEMX/cw0Kh13eBlgMlS+BvwZfIcYlvz3yE/amd
+gj9FA1Gdnzo+MxImO39na58pAE4IFC63foiVdz1y8/40oUlj2WVbIpSruihDyxRy
+Nkvg+MkfC98Qu5tm+f5iyxOregjlFg7VBRB9zB9YJ5tmbMM87SvsiQFSBBgBCAA8
+FiEES/fpD4v0I289ocHlhpSejwOaCUMFAmsED0obFIAAAAAABAAObWFudTIsMi41
+KzEuMTIsMCwzAhsMAAoJEIaUno8DmglD/+4H/3gzpblZZ+Kp3W6Naa4kzHfhogYe
+fVPkoMDXssH2LyqtltnkJWbVbd66AFSkMT8f7A9qgtPkRSmwBDiNEEQxxwRps1b6
+x/G95cKj6z5U0p5mekJWVTRizJJUmsn2wVGLkl/ZITo/5ElL3Bmy722EjmIaGm5u
+zz1weMcTyJVRPc2+jFD+AvO9NoxFZ8gvb+uAMp70erUSg+AkIjYx5CbPDWs4K/1X
+KMV50gqJ57df/Ipb5Xa/efZhx+w12ahd0Nk+jCMsjchU7tn+r0fSlWlGv3eOvDV1
+64TW/Gi+Qy7LzbIPHnP0k5c0orcX6M6trPTHTxaWMKnurFcDTZDfwjGFc+c=
+=l2uM
+-----END PGP PRIVATE KEY BLOCK-----
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/pgp/pgp-action-route.yaml 
b/tests/camel-kamelets-itest/src/test/resources/pgp/pgp-action-route.yaml
new file mode 100644
index 000000000..5c4872611
--- /dev/null
+++ b/tests/camel-kamelets-itest/src/test/resources/pgp/pgp-action-route.yaml
@@ -0,0 +1,296 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+# The test keys and messages in this folder are for these tests only: their 
passphrases are public.
+
+# Round trip, armored: the message is encrypted for alice, whatever the 
CamelPGPDataFormat* headers of the
+# message say, and alice decrypts it back to the original text
+- route:
+    from:
+      uri: "timer:roundtrip"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: "Order 42: 3 boxes of apples"
+        - setHeader:
+            name: X-Keep
+            constant: "kept"
+        - setHeader:
+            name: Content-Type
+            constant: "text/plain"
+        # a message that tries to choose the key: encrypt for bob, from bob's 
key ring
+        - setHeader:
+            name: CamelPGPDataFormatKeyUserid
+            constant: "[email protected]"
+        - setHeader:
+            name: CamelPGPDataFormatKeyFileName
+            constant: "classpath:bob-public.asc"
+        - to:
+            uri: "kamelet:pgp-encrypt-action"
+            parameters:
+              publicKeyRing: "classpath:alice-public.asc"
+              keyUserId: "[email protected]"
+              armored: true
+        - log: "Encrypted-armored ${body.getClass().getName()} 
ct=${header.Content-Type} 
keys=${header.CamelPGPDataFormatNumberOfEncryptionKeys} 
userid=${header.CamelPGPDataFormatKeyUserid}"
+        - convertBodyTo:
+            type: "java.lang.String"
+        - log: "Armored-text ${body.substring(0, 27)} 
plaintext-visible=${body.contains('apples')}"
+        - to:
+            uri: "kamelet:pgp-decrypt-action"
+            parameters:
+              secretKeyRing: "classpath:alice-secret.asc"
+              passphrase: "alice-test-passphrase"
+        - log: "Decrypted-armored ${body.getClass().getName()} 
ct=${header.Content-Type} keep=${header.X-Keep}: ${bodyAs(String)}|"
+
+# Signed by bob, binary, with alice's public key ring given as text (base64:): 
bob's signature is checked
+- route:
+    from:
+      uri: "timer:signed"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: "Invoice 7: 120.50 EUR"
+        - to:
+            uri: "kamelet:pgp-encrypt-action"
+            parameters:
+              # alice-public.asc, exported binary and in Base64
+              publicKeyRing: 
"base64:mQENBGsED0gBCAC8X0+SnADjSSxBwT9HmOS/+CxCw5ciCWuA7aMrycq9CcIrskN8EQdLseLpmZq47eog5ryDWStYi9JVCb7e4yKYvgHrMlaTUuI32OsMyfBBfFHtkf64wzz+xaLR8S9nhWD2yL+1oR1kDAdDZ+us77fDaKbF1xhVM2DvuGg1y4Zs9ZH+d7Fedq4GXkaEdZBHcaB/yhKUncI9REk5BrzmzjwUsCHUj2c/KleZRqiYwNtWgSluhcsoBfqYZV/Pd0gU/U2K4uZxGrnMw0gFCaAxUR0C3FK7Kk0BmHA6B5bgwdavxujM7yvAZej9v2xfQCEgCUfRHYc15n+OP71JBB7+GN4rABEBAAG0LGFsaWNlIChLYW1lbGV0IHRlc3Qga2V5KSA8YWxpY2VAZXhhbXBsZS5jb20+iQFoBBMBCABSGxSAAAAAAAQADm1hbnU
 [...]
+              keyUserId: "[email protected]"
+              signingKeyRing: "classpath:bob-secret.asc"
+              signingKeyUserId: "[email protected]"
+              signingPassphrase: "bob-test-passphrase"
+        - log: "Encrypted-signed ${body.getClass().getName()} 
ct=${header.Content-Type} 
signers=${header.CamelPGPDataFormatNumberOfSigningKeys}"
+        - to:
+            uri: "kamelet:pgp-decrypt-action"
+            parameters:
+              secretKeyRing: "classpath:alice-secret.asc"
+              passphrase: "alice-test-passphrase"
+              verificationKeyRing: "classpath:bob-public.asc"
+        - log: "Verified-signed ${body.getClass().getName()} 
ct=${header.Content-Type}: ${bodyAs(String)}|"
+
+# A message made by gpg (signed by bob, encrypted for alice) is decrypted and 
its signature checked
+- route:
+    from:
+      uri: "timer:gpg"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: "resource:classpath:invoice-from-gpg.asc"
+        - to:
+            uri: "kamelet:pgp-decrypt-action"
+            parameters:
+              secretKeyRing: "classpath:alice-secret.asc"
+              passphrase: "alice-test-passphrase"
+              verificationKeyRing: "classpath:bob-public.asc"
+        - log: "Verified-gpg ${bodyAs(String)}|"
+
+# The wrong key: a message for alice cannot be decrypted with bob's secret key
+- route:
+    from:
+      uri: "timer:wrongkey"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: "for alice only"
+        - to:
+            uri: "kamelet:pgp-encrypt-action"
+            parameters:
+              publicKeyRing: "classpath:alice-public.asc"
+              keyUserId: "[email protected]"
+        - doTry:
+            steps:
+              - to:
+                  uri: "kamelet:pgp-decrypt-action"
+                  parameters:
+                    secretKeyRing: "classpath:bob-secret.asc"
+                    passphrase: "bob-test-passphrase"
+              - log: "Accepted-wrongkey ${bodyAs(String)}"
+            doCatch:
+              - exception:
+                  - "java.lang.Exception"
+                steps:
+                  - log: "Rejected-wrongkey ${exception.getClass().getName()}: 
${exception.message}"
+
+# The wrong signer: a message signed by bob fails when only alice is trusted
+- route:
+    from:
+      uri: "timer:wrongsigner"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: "signed by bob"
+        - to:
+            uri: "kamelet:pgp-encrypt-action"
+            parameters:
+              publicKeyRing: "classpath:alice-public.asc"
+              keyUserId: "[email protected]"
+              signingKeyRing: "classpath:bob-secret.asc"
+              signingKeyUserId: "[email protected]"
+              signingPassphrase: "bob-test-passphrase"
+        - doTry:
+            steps:
+              - to:
+                  uri: "kamelet:pgp-decrypt-action"
+                  parameters:
+                    secretKeyRing: "classpath:alice-secret.asc"
+                    passphrase: "alice-test-passphrase"
+                    verificationKeyRing: "classpath:alice-public.asc"
+              - log: "Accepted-wrongsigner ${bodyAs(String)}"
+            doCatch:
+              - exception:
+                  - "java.lang.Exception"
+                steps:
+                  - log: "Rejected-wrongsigner 
${exception.getClass().getName()}: ${exception.message}"
+
+# An unsigned message fails when a signature is required (the default), and 
passes when it is optional
+- route:
+    from:
+      uri: "timer:unsigned"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: "not signed"
+        - to:
+            uri: "kamelet:pgp-encrypt-action"
+            parameters:
+              publicKeyRing: "classpath:alice-public.asc"
+              keyUserId: "[email protected]"
+        - convertBodyTo:
+            type: "byte[]"
+        - setProperty:
+            name: encrypted
+            simple: "${body}"
+        - doTry:
+            steps:
+              - to:
+                  uri: "kamelet:pgp-decrypt-action"
+                  parameters:
+                    secretKeyRing: "classpath:alice-secret.asc"
+                    passphrase: "alice-test-passphrase"
+                    verificationKeyRing: "classpath:bob-public.asc"
+              - log: "Accepted-unsigned ${bodyAs(String)}"
+            doCatch:
+              - exception:
+                  - "java.lang.Exception"
+                steps:
+                  - log: "Rejected-unsigned ${exception.getClass().getName()}: 
${exception.message}"
+        - setBody:
+            exchangeProperty: encrypted
+        - to:
+            uri: "kamelet:pgp-decrypt-action"
+            parameters:
+              secretKeyRing: "classpath:alice-secret.asc"
+              passphrase: "alice-test-passphrase"
+              verificationKeyRing: "classpath:bob-public.asc"
+              signatureVerification: optional
+        - log: "Accepted-optional ${bodyAs(String)}|"
+
+# A changed message fails: the gpg message with one bit changed near its end
+- route:
+    from:
+      uri: "timer:tampered"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: "resource:classpath:invoice-tampered.asc"
+        - doTry:
+            steps:
+              - to:
+                  uri: "kamelet:pgp-decrypt-action"
+                  parameters:
+                    secretKeyRing: "classpath:alice-secret.asc"
+                    passphrase: "alice-test-passphrase"
+              - log: "Accepted-tampered ${bodyAs(String)}"
+            doCatch:
+              - exception:
+                  - "java.lang.Exception"
+                steps:
+                  - log: "Rejected-tampered ${exception.getClass().getName()}: 
${exception.message}"
+
+# Without verificationKeyRing, the signature of the gpg message is not checked
+- route:
+    from:
+      uri: "timer:noverify"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: "resource:classpath:invoice-from-gpg.asc"
+        - to:
+            uri: "kamelet:pgp-decrypt-action"
+            parameters:
+              secretKeyRing: "classpath:alice-secret.asc"
+              passphrase: "alice-test-passphrase"
+        - log: "Unverified-gpg ${bodyAs(String)}|"
+
+# A message without integrity protection (made here with the PGP data format 
itself) fails
+- route:
+    from:
+      uri: "timer:legacy"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: "no integrity protection"
+        - marshal:
+            pgp:
+              keyFileName: "classpath:alice-public.asc"
+              keyUserid: "[email protected]"
+              integrity: "false"
+        - doTry:
+            steps:
+              - to:
+                  uri: "kamelet:pgp-decrypt-action"
+                  parameters:
+                    secretKeyRing: "classpath:alice-secret.asc"
+                    passphrase: "alice-test-passphrase"
+              - log: "Accepted-legacy ${bodyAs(String)}"
+            doCatch:
+              - exception:
+                  - "java.lang.Exception"
+                steps:
+                  - log: "Rejected-legacy ${exception.getClass().getName()}: 
${exception.message}"
+
+# A message that gpg 2.5 wrote in the OCB (AEAD) format decrypts, as it is 
integrity protected (CAMEL-27449)
+- route:
+    from:
+      uri: "timer:ocb"
+      parameters:
+        repeatCount: 1
+      steps:
+        - setBody:
+            constant: "resource:classpath:invoice-ocb-from-gpg.asc"
+        - doTry:
+            steps:
+              - to:
+                  uri: "kamelet:pgp-decrypt-action"
+                  parameters:
+                    secretKeyRing: "classpath:alice-secret.asc"
+                    passphrase: "alice-test-passphrase"
+              - log: "Accepted-ocb ${bodyAs(String)}|"
+            doCatch:
+              - exception:
+                  - "java.lang.Exception"
+                steps:
+                  - log: "Rejected-ocb ${exception.getClass().getName()}: 
${exception.message}"
diff --git 
a/tests/camel-kamelets-itest/src/test/resources/pgp/pgp-action.citrus.it.yaml 
b/tests/camel-kamelets-itest/src/test/resources/pgp/pgp-action.citrus.it.yaml
new file mode 100644
index 000000000..4f25357bf
--- /dev/null
+++ 
b/tests/camel-kamelets-itest/src/test/resources/pgp/pgp-action.citrus.it.yaml
@@ -0,0 +1,110 @@
+# ---------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# ---------------------------------------------------------------------------
+
+name: pgp-action-test
+actions:
+  - camel:
+      cli:
+        run:
+          resources:
+            - "keys/alice-public.asc"
+            - "keys/alice-secret.asc"
+            - "keys/bob-public.asc"
+            - "keys/bob-secret.asc"
+            - "invoice-from-gpg.asc"
+            - "invoice-tampered.asc"
+            - "invoice-ocb-from-gpg.asc"
+          integration:
+            file: "pgp/pgp-action-route.yaml"
+  # Round trip, armored: the message is encrypted for alice although its 
headers name bob, and the CamelPGPDataFormat* headers are gone
+  - camel:
+      cli:
+        verify:
+          integration: "pgp-action-route"
+          logMessage: 'Encrypted-armored 
org.apache.camel.converter.stream.InputStreamCache ct=application/pgp-encrypted 
keys= userid='
+  - camel:
+      cli:
+        verify:
+          integration: "pgp-action-route"
+          logMessage: 'Armored-text -----BEGIN PGP MESSAGE----- 
plaintext-visible=false'
+  - camel:
+      cli:
+        verify:
+          integration: "pgp-action-route"
+          logMessage: 'Decrypted-armored 
org.apache.camel.converter.stream.InputStreamCache ct=application/octet-stream 
keep=kept: Order 42: 3 boxes of apples|'
+  # Signed by bob, binary, with the public key ring as base64: text, and bob's 
signature checked
+  - camel:
+      cli:
+        verify:
+          integration: "pgp-action-route"
+          logMessage: 'Encrypted-signed 
org.apache.camel.converter.stream.InputStreamCache ct=application/pgp-encrypted 
signers='
+  - camel:
+      cli:
+        verify:
+          integration: "pgp-action-route"
+          logMessage: 'Verified-signed 
org.apache.camel.converter.stream.InputStreamCache ct=application/octet-stream: 
Invoice 7: 120.50 EUR|'
+  # A message made by gpg: decrypted, with its signature checked, and without
+  - camel:
+      cli:
+        verify:
+          integration: "pgp-action-route"
+          logMessage: 'Verified-gpg Invoice 2026-118 from Bob|'
+  - camel:
+      cli:
+        verify:
+          integration: "pgp-action-route"
+          logMessage: 'Unverified-gpg Invoice 2026-118 from Bob|'
+  # The wrong key fails
+  - camel:
+      cli:
+        verify:
+          integration: "pgp-action-route"
+          logMessage: 'Rejected-wrongkey 
org.bouncycastle.openpgp.PGPException: PGP message is encrypted with a key 
which could not be found in the Secret Keyring.'
+  # A signature of a sender that is not trusted fails
+  - camel:
+      cli:
+        verify:
+          integration: "pgp-action-route"
+          logMessage: 'Rejected-wrongsigner 
java.lang.IllegalArgumentException: Cannot verify the PGP signature: No public 
key found for the key ID(s) contained in the PGP signature(s).'
+  # An unsigned message fails when a signature is required, and passes when it 
is optional
+  - camel:
+      cli:
+        verify:
+          integration: "pgp-action-route"
+          logMessage: 'Rejected-unsigned 
org.bouncycastle.openpgp.PGPException: PGP message does not contain any 
signatures although a signature is expected.'
+  - camel:
+      cli:
+        verify:
+          integration: "pgp-action-route"
+          logMessage: 'Accepted-optional not signed|'
+  # A changed message fails
+  - camel:
+      cli:
+        verify:
+          integration: "pgp-action-route"
+          logMessage: 'Rejected-tampered 
org.bouncycastle.openpgp.PGPException: Message failed integrity check'
+  # A message without integrity protection fails, while a message in the OCB 
format of gpg 2.4 and later decrypts
+  - camel:
+      cli:
+        verify:
+          integration: "pgp-action-route"
+          logMessage: 'Rejected-legacy org.bouncycastle.openpgp.PGPException: 
PGP message is not integrity protected.'
+  - camel:
+      cli:
+        verify:
+          integration: "pgp-action-route"
+          logMessage: 'Accepted-ocb Invoice 2026-119 from Bob, OCB|'

Reply via email to