rasenmaeher_api.cfssl.public

Public things, CA cert, CRL etc

Module Contents

Functions

get_ca()

Quick and dirty method to get CA from CFSSL

get_ocsprest_crl(suffix)

Fetch CRL from OCSPREST

get_crl()

Quick and dirty method to get CRL from CFSSL, should not be used.

get_bundle(cert)

Get the optimal cert bundle for given cert

Attributes

LOGGER

CRL_LIFETIME

LOGGER[source]
CRL_LIFETIME = '1800s'[source]
async get_ca()[source]

Quick and dirty method to get CA from CFSSL returns: CA certificate

Return type:

str

async get_ocsprest_crl(suffix)[source]

Fetch CRL from OCSPREST

Parameters:

suffix (str)

Return type:

bytes

async get_crl()[source]

Quick and dirty method to get CRL from CFSSL, should not be used. returns: DER binary encoded Certificate Revocation List

Return type:

bytes

async get_bundle(cert)[source]

Get the optimal cert bundle for given cert

Parameters:

cert (str)

Return type:

str