backend.globaleaks.utils.letsencrypt

Module Contents

Classes

ChallTok

Functions

select_http01_chall(orderr) Extract authorization resource from within order resource.
split_certificate_chain(full_chain_pem) Parse and split a certificate chain
convert_asn1_date(asn1_bytes) Print a date in asn1 format
create_v2_client(directory_url, accnt_key) Creates an ACME v2 Client for making requests to Let’s Encrypt with
get_boulder_tos(directory_url, accnt_key) Returns the TOS for Let’s Encrypt from Boulder
request_new_certificate(hostname, accnt_key, priv_key, tmp_chall_dict, directory_url) Runs the entire process of ACME registration and certificate request
class backend.globaleaks.utils.letsencrypt.ChallTok(tok)[source]
backend.globaleaks.utils.letsencrypt.select_http01_chall(orderr)[source]

Extract authorization resource from within order resource.

backend.globaleaks.utils.letsencrypt.split_certificate_chain(full_chain_pem)[source]

Parse and split a certificate chain

Parameters:full_chain_pem – the PEM chain of certificates
Returns:the list of certificates contained in the PEM chain
backend.globaleaks.utils.letsencrypt.convert_asn1_date(asn1_bytes)[source]

Print a date in asn1 format

Parameters:asn1_bytes – the daate to be printed
Returns:
backend.globaleaks.utils.letsencrypt.create_v2_client(directory_url, accnt_key)[source]

Creates an ACME v2 Client for making requests to Let’s Encrypt with

backend.globaleaks.utils.letsencrypt.get_boulder_tos(directory_url, accnt_key)[source]

Returns the TOS for Let’s Encrypt from Boulder

backend.globaleaks.utils.letsencrypt.request_new_certificate(hostname, accnt_key, priv_key, tmp_chall_dict, directory_url)[source]

Runs the entire process of ACME registration and certificate request