Skip to content

Explicitly zero a KeyPair after use. #47

@didier-wenzek

Description

@didier-wenzek

I'm missing a way to zero a KeyPair after use.

Using the crate zeroise, one can zeroize the string return by Certificate::serialize_private_key_pem but not the KeyPair internally hold by that Certificate,
because some Into<Zeroizing> trait implementation is missing.

Could rcgen provide such zeroize feature? With some explicit call or implicitly in Drop?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions