nvflare.dashboard.application.cert module

class CertPair(owner: Entity | None = None, ser_pri_key: str | None = None, ser_cert: str | None = None)[source]

Bases: object

Class for serialized private key and certificate.

owner: Entity = None
ser_cert: str = None
ser_pri_key: str = None
class Entity(name: str, org: str | None = None, role: str | None = None)[source]

Bases: object

Class for keeping track of each certificate owner.

name: str
org: str = None
role: str = None
deserialize_ca_key(ser_pri_key)[source]
generate_cert(subject, issuer, signing_pri_key, subject_pub_key, valid_days=360, ca=False)[source]
generate_keys()[source]
make_cert(subject: Entity, issuer_cert_pair: CertPair)[source]
make_root_cert(subject: Entity)[source]
serialize_cert(cert)[source]
serialize_pri_key(pri_key, passphrase=None)[source]
x509_name(cn_name, org_name=None, role=None)[source]