CertificateManager.CreateJwkJsonFromRsaPrivateKeyPem method
Creates an RSA JWK JSON from a PKCS#1 or PKCS#8 RSA private key in PEM format.
public static string CreateJwkJsonFromRsaPrivateKeyPem(string rsaPrivateKeyPem,
string? keyId = null)
| parameter | description |
|---|---|
| rsaPrivateKeyPem | PEM containing an RSA private key (e.g. “—–BEGIN RSA PRIVATE KEY—– …”). |
| keyId | Optional key identifier (kid) to set on the JWK. |
Return Value
JWK JSON string containing public and private parameters.
See Also
- class CertificateManager
- namespace Kestrun.Certificates