nvflare.fuel.hci.security module
- get_certificate_common_name(cert: dict)[source]
Gets the common name of the provided certificate.
- Parameters:
cert – certificate
Returns: common name of provided cert
- get_identity_info(cert: dict)[source]
Gets the identity information from the provided certificate.
- Parameters:
cert – certificate
- Returns: if the cert is None, returning None.
if the cert is a dictionary, returning a dictionary containing three keys, common_name, organization and role.