Skip to content

This library doesnt support private keys with headers #85

@shaybenh7

Description

@shaybenh7

Hey,
when I'm trying to create my JWT with my private key that contains the headers:
-----BEGIN RSA PRIVATE KEY-----
and
-----END RSA PRIVATE KEY-----
it gets an exception:
System.IO.IOException: END RSA PRIVATE KEY was not found.
at Org.BouncyCastle.Utilities.IO.Pem.PemReader.ReadPemObject()
at Org.BouncyCastle.OpenSsl.PemReader.ReadObject()

when removing it, it works.
would you be able to fix it?

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