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_certificate_identity(cert: dict) dict [source]¶
Gets the identity info of the provided certificate.
- Parameters:
cert – certificate
Returns: identity info in a dict with following keys: name, org, role
- 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 dictinary, returning a dictionary containing three keys, common_name, organization and role.