Skip to content

spki/pkcs8: add support for creating SPKI from PublicKey/VerifyingKey without going through the der #699

@lumag

Description

@lumag

If one wants to construct a certificate, he either has to go through the EncodePublicKey::to_public_key_der() and then parsing the resulting DER to form the SPKI or to create the SPKI manually.

My proposal is to add to_public_key_spki() method allowing one to skip the DER step by returning the corresponding SPKI structure (either by extending the EncodePublicKey trait or by adding a new trait for that).

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