I am trying to create a custom jwt token for firebase authentication from a C# WCF service. The problem is that I need to sign the jwt token with my private RSA key (e.g. "-----BEGIN PRIVATE KEY-----\nMIIEvQIBA ... wFg=\n-----END PRIVATE KEY-----).
How do I create a representation of the private key in String format (in brackets above) to a representation that C# understands?