Skip to main content

encode_rs256_pem

Function encode_rs256_pem 

Source
pub fn encode_rs256_pem<H, C>(
    header: &H,
    claims: &C,
    private_key_pem: &[u8],
) -> Result<String>
where H: Serialize, C: Serialize,
Expand description

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