Struct acme_client::AcmeClient [] [src]

pub struct AcmeClient { /* fields omitted */ }

Automatic Certificate Management Environment (ACME) client

Methods

impl AcmeClient
[src]

Sets domain name.

Sets CA server, default is: https://acme-v01.api.letsencrypt.org

Sets intermediate PEM certificate URL to chain signed certificate with before save_signed_certificate and write_signed_certificate.

Let's Encrypt intermediate certificates can be found in certificates page.

Let's Encrypt Authority X3 (IdenTrust cross-signed) certificate URL is: https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem

Generates new user key.

Generates new domain key.

Sets user aggrement.

This agreement is used in user registration and user must agree this agreement. Default is: LE-SA-v1.1.1-August-1-2016.pdf

Let's Encrypt requires an URL to agreed user agrement.

Loads private key from PEM file path.

Loads private domain key from PEM file path.

Gets domain name

Gets the public key as PEM.

Gets the private key as PEM.

Gets domain public key as PEM.

Gets domain private key as PEM.

Saves user public key as PEM.

Saves user private key as PEM.

Saves domain public key as PEM.

Saves domain private key as PEM.

Sets bit lenght for CSR generation. Only 1024, 2048 and 4096 allowed.

Default is 2048.

Generates new certificate signing request for domain.

You need to set a domain name with domain() first.

Loads CSR from PEM file.

Saves CSR file as PEM.

Loads a signed X509 certificate as pem

This is required if you want to revoke a signed certificate

Registers new user account.

You can optionally use an email for this account.

This function will generate a user key if it's not already generated or loaded from a PEM file.

Makes new identifier authorization request and gets challenges for domain.

Gets a challenge.

You need to get challenges first with identify_domain().

Pattern is used in starts_with for type comparison.

Saves validation token into {path}/.well-known/acme-challenge/{token}.

Triggers HTTP validation to verify domain ownership.

Triggers DNS validation to verify domain ownership.

Gets DNS validation signature.

This value is used for verification domain over DNS. Signature must be saved as a TXT record for _acme_challenge.example.com.

Signs certificate.

You need to generate or load a CSR first. Domain also needs to be verified first.

Saves signed certificate as PEM.

Writes signed certificate to writer

Revokes a signed certificate

You need to load a certificate with load_certificate first

Trait Implementations

impl Default for AcmeClient
[src]

Returns the "default value" for a type. Read more

impl Drop for AcmeClient
[src]

A method called when the value goes out of scope. Read more