Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7192

PGPDataFormat: Sub-Key not supported for signing and correct selection of encryption/signing key via KeyFlag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.12.2
    • 2.12.3, 2.13.0
    • camel-crypto
    • None
    • Patch Available
    • Unknown

    Description

      A PGP key ring with version 4 keys typically consists of a primary key which has sub-keys. There is a use-case where the primary key has only the usage flag (KeyFlag) "certify" and one sub-key is makred with the usage flag "signing" and the other sub-key is marked with usage flag"encryption". In this case the PGPDataFormat does not use the correct sub-key for signing and encryption.

      In the patch I enabled the usage of sub-keys for the signing process and I introduced the usage flag (KeyFlag) for finding the correct keys for signing and encryption.

      Attachments

        Activity

          People

            njiang Willem Jiang
            forsthofer Franz Forsthofer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: