cloudmesh-configuration.cloudmesh.configuration.security.authorized_keys

authorized key management.

Module Contents

Classes

AuthorizedKeys

Class to manage authorized keys.

Functions

get_fingerprint_from_public_key(pubkey)

Generate the fingerprint of a public key

cloudmesh-configuration.cloudmesh.configuration.security.authorized_keys.get_fingerprint_from_public_key(pubkey)

Generate the fingerprint of a public key

Parameters

pubkey (str) – the value of the public key

Returns

fingerprint

Return type

str

class cloudmesh-configuration.cloudmesh.configuration.security.authorized_keys.AuthorizedKeys

Bases: object

Class to manage authorized keys.

classmethod load(cls, path)

load the keys from a path

Parameters

path – the filename (path) in which we find the keys

Returns

add(self, pubkey)

add a public key. :param pubkey: the filename to the public key :return:

abstract remove(self, pubkey)

Removes the public key TODO: this method is not implemented :param pubkey: the filename of the public key :return:

__str__(self)

Return str(self).

cloudmesh-configuration.cloudmesh.configuration.security.authorized_keys.path