fedn.common.security package

Submodules

fedn.common.security.certificate module

class fedn.common.security.certificate.Certificate(cwd, name=None, key_name='key.pem', cert_name='cert.pem', create_dirs=True)[source]

Bases: object

BITS = 2048
CERT_NAME = 'cert.pem'
KEY_NAME = 'key.pem'
gen_keypair()[source]
get_cert()[source]
Returns:

get_key()[source]
Returns:

get_keypair_raw()[source]
Returns:

set_keypair_raw(certificate, privatekey)[source]
Parameters:
  • certificate

  • privatekey

fedn.common.security.certificatemanager module

class fedn.common.security.certificatemanager.CertificateManager(directory)[source]

Bases: object

add(certificate)[source]
Parameters:

certificate

Returns:

find(name)[source]
Parameters:

name

Returns:

get_or_create(name)[source]
Parameters:

name

Returns:

load_all()[source]

Module contents