Skip to content

Implement password based messageData encryption for ECC CA/RA certificates #300

@selbitschka

Description

@selbitschka

According to RFC8894 Section 3.1 messageData should be encrypted using the challengePassword if recipient's public key is not encryption capable. Currently the PkcsPkiEnvelopeEncoder class constructor requires a X509Certificate as recipient but this will fail using a ECC key.

Solution would be to implement an other PkcsPkiEnvelopeEncoder or extend the current to allow using the challengePassword and an key derivation option. Then during getEncoder in Client class if no recipientCertificate is returned a fallback using the challengePassword for encryption could me implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions