def keytype_identity(keytype):
    """
    Get the keyring identity from keyring type.

    This is used in authentication with keyrings and generating keyrings.
    """
    ident_dict = {'admin': 'client.admin', 'mds': 'client.bootstrap-mds',
        'mgr': 'client.bootstrap-mgr', 'osd': 'client.bootstrap-osd', 'rgw':
        'client.bootstrap-rgw', 'mon': 'mon.'}
    return ident_dict.get(keytype, None)
