rasenmaeher_api.mtlsinit

Init mTLS client cert for RASENMAEHER itself

Module Contents

Functions

check_settings_clientpaths()

Make sure the paths are defined, to defaults if needed, return True if setting was changed

check_mtls_init()

Check if we have the cert and key

mtls_init()

If needed: Create keypair, CSR, and get it signed

get_session_winit()

wrap libpvarki get_session to init checks

Attributes

LOGGER

CERT_NAME_PREFIX

LOGGER[source]
CERT_NAME_PREFIX = 'rm_mtls_client'[source]
check_settings_clientpaths()[source]

Make sure the paths are defined, to defaults if needed, return True if setting was changed

Return type:

bool

check_mtls_init()[source]

Check if we have the cert and key

Return type:

bool

async mtls_init()[source]

If needed: Create keypair, CSR, and get it signed

Return type:

None

async get_session_winit()[source]

wrap libpvarki get_session to init checks

Return type:

aiohttp.ClientSession