ocsprest.routes

aiohttp routes

Module Contents

Functions

refresh_all(request)

calls cfssl ocsprefresh

csr_sign(request)

Sign a CSR, we have to do it via CLI if we want CFSSL to add the Authority Information Access properties

ocsp_sign_one(request)

calls cfssl ocspsign

call_dump_crl(request)

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

get_crl_pem(request)

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

get_crl_der(request)

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

healthcheck(request)

Health check

get_app()

Get the app

app_w_logging()

init logging and create app

refresher()

Dump the CRL and refresh OCSP periodically

Attributes

LOGGER

ROUTER

LOGGER[source]
ROUTER[source]
async refresh_all(request)[source]

calls cfssl ocsprefresh

Parameters:

request (fastapi.Request)

Return type:

Dict[str, Any]

async csr_sign(request)[source]

Sign a CSR, we have to do it via CLI if we want CFSSL to add the Authority Information Access properties

Parameters:

request (fastapi.Request)

Return type:

Dict[str, Any]

async ocsp_sign_one(request)[source]

calls cfssl ocspsign

Parameters:

request (fastapi.Request)

Return type:

Dict[str, Any]

async call_dump_crl(request)[source]

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

Parameters:

request (fastapi.Request)

Return type:

Dict[str, Any]

async get_crl_pem(request)[source]

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

Parameters:

request (fastapi.Request)

Return type:

fastapi.responses.FileResponse

async get_crl_der(request)[source]

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

Parameters:

request (fastapi.Request)

Return type:

fastapi.responses.FileResponse

async healthcheck(request)[source]

Health check

Parameters:

request (fastapi.Request)

Return type:

Dict[str, Any]

get_app()[source]

Get the app

Return type:

fastapi.FastAPI

app_w_logging()[source]

init logging and create app

Return type:

fastapi.FastAPI

async refresher()[source]

Dump the CRL and refresh OCSP periodically

Return type:

None