Module acme_rs::util[][src]

A module that contains utility methods used in the acme-rs context. This module heavily uses the serde_json and openssl libaries.

Functions

generate_rsa_keypair

Generates a RSA keypair.

jwk

Builds a json web key JWK (RFC7517) for a RSA private key.

jws

Constructs a json web signature JWS (RFC7515) in the flattened JSON form for a specified payload. This involves signing the JWS with the RS256 algorithm.

load_keys_from_file

Loads a private key and a public key from the given files. The keys need to be safed in the pem format.

save_certificates

Parses the certificate and writes them into to files:

save_keypair

Saves an rsa keypair into two files priv.pem and pub.pem.