Skip to content

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

Closed

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.

Activity

  1. tarcieri commented on Aug 19, 2022

    @tarcieri
    Member

    I've definitely been meaning to add a certificate builder type, as it's a blocker for migrating the yubhism crate (which would hopefully free up the x509 crate so we could start using that name).

    I might have some time this weekend to look at that.

  2. lumag commented on Aug 19, 2022

    @lumag
    ContributorAuthor

    This would be great!

  3. baloo commented on Apr 20, 2023

    @baloo
    Member

    Could we close this one?

  4. tarcieri commented on Apr 20, 2023

    @tarcieri
    Member

    Fixed by #764

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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