Skip to content

Creating base64 private key #74

@luveti

Description

@luveti

VapidSignatureBuilder::from_base64 says:

Creates a new builder from a raw base64-encoded private key

But doesn't provide an example like the public key documentation does:

openssl ec -in private.pem -pubout -outform DER|tail -c 65|base64|tr '/+' '_-'|tr -d '\n'

Would the following work? I've removed the -pubout argument so that it outputs the private key instead.

openssl ec -in private.pem -outform DER|tail -c 65|base64|tr '/+' '_-'|tr -d '\n'

I'm not sure if the tail needs modified or not; The public key docs don't mention why this tail is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions