Skip to main content

encode_rs256_pem

Function encode_rs256_pem 

pub fn encode_rs256_pem<H, C>(
    header: &H,
    claims: &C,
    private_key_pem: &[u8],
) -> Result<String, Error>
where H: Serialize, C: Serialize,
Available on crate feature jwt and crate feature reqsign and non-WebAssembly only.
Expand description

Encode a JWS compact JWT using an RSA private key in PKCS#8 PEM format.