Skip to content

Add Issuer::from_ca_cert_der that takes a KeyPair reference #373

@0xIO32

Description

@0xIO32

Add a Issuer::from_ca_cert_der alternative that takes a KeyPair reference, instead of requireing an owned instance of KeyPair.

My current workarround:

fn clone_keypair(keypair: &KeyPair) -> KeyPair {
    let der = PrivateKeyDer::try_from(keypair.serialize_der()).expect("Unable to clone keypair");
    KeyPair::from_der_and_sign_algo(&der, keypair.algorithm()).expect("Unable to clone keypair")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions