Skip to content

x509-cert: support creating Certificate without additional variables #700

@lumag

Description

@lumag

x509-cert's Certificate struct can not be easily created in a separate function, as creating it requires several intermediate temporary variables, which are borrowed rather than being moved to the created struct. E.g. my first attempt stopped at borrowing signature, basic_contraint (for Extension's extn_value) and public key DER. I can probably solve the PK part by using newly implemented TryFrom, but for the rest additional work/suggestions would be required. E.g. it would be nice to allow using BitString in addition to BitStringRef for the signature field.

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