ocsprest.helpers

helpers

Module Contents

Classes

CRLType

Root or intermediate (or why not both)

Functions

call_cmd(cmd[, timeout])

Do the boilerplate for calling cmd and reporting output/return code

cfssl_loglevel()

Return CFSSL loglevel 0-5

crlpaths([crltype])

Path to CRL files by CRLType

merge_crl()

Merge CRL files

dump_crl([crltype])

Dump CRL to shared directory, triggering reloads for everyone interested in it is beyond us though

refresh_oscp()

Call the OCSP refresh script

Attributes

LOGGER

LOGGER[source]
async call_cmd(cmd, timeout=10)[source]

Do the boilerplate for calling cmd and reporting output/return code

Parameters:
Return type:

Tuple[int, str, str]

cfssl_loglevel()[source]

Return CFSSL loglevel 0-5

Return type:

int

class CRLType[source]

Bases: enum.IntEnum

Root or intermediate (or why not both)

ROOT = 1[source]
INTERMEDIATE = 2[source]
MERGED = 3[source]
crlpaths(crltype=CRLType.MERGED)[source]

Path to CRL files by CRLType

Parameters:

crltype (CRLType)

Return type:

Tuple[pathlib.Path, pathlib.Path]

async merge_crl()[source]

Merge CRL files

Return type:

int

async dump_crl(crltype=CRLType.MERGED)[source]

Dump CRL to shared directory, triggering reloads for everyone interested in it is beyond us though

Parameters:

crltype (CRLType)

Return type:

int

async refresh_oscp()[source]

Call the OCSP refresh script

Return type:

int