Skip to content

-----BEGIN PRIVATE KEY----- not catered for? #22

@ianharrigan

Description

@ianharrigan

Ive been trying to read a private key from a pem and kept getting back null, looking into it a little, i noticed that the header format

-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----

doesnt seem to be handled, just -----BEGIN RSA PRIVATE KEY----- - is this by design? I didnt create the pem file (and also cant share it), but it was created with openssl (maybe i can try and create a new one)... When i change the header to be the "RSA" version it still doesnt work, but maybe that'd be better as a different issue?

Cheers,
Ian

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions