module documentation
(source)

Implementation module for the `ckeygen` command.
Class ​General​Options Undocumented
Function change​Pass​Phrase Undocumented
Function display​Public​Key Undocumented
Function enumrepresentation Undocumented
Function generate​DSAkey Undocumented
Function generate​ECDSAkey Undocumented
Function generate​Ed25519key Undocumented
Function generate​RSAkey Undocumented
Function handle​Error Undocumented
Function print​Fingerprint Undocumented
Function run Undocumented
Variable supported​Key​Types Undocumented
Function _default​Private​Key​Subtype Return a reasonable default private key subtype for a given key type.
Function _input​Save​File Ask the user where to save the key.
Function _key​Generator Undocumented
Function _save​Key Persist a SSH key on local filesystem.
def changePassPhrase(options): (source)

Undocumented

def displayPublicKey(options): (source)

Undocumented

def enumrepresentation(options): (source)

Undocumented

@_keyGenerator('dsa')
def generateDSAkey(options): (source)

Undocumented

@_keyGenerator('ecdsa')
def generateECDSAkey(options): (source)

Undocumented

@_keyGenerator('ed25519')
def generateEd25519key(options): (source)

Undocumented

@_keyGenerator('rsa')
def generateRSAkey(options): (source)

Undocumented

def handleError(): (source)

Undocumented

def printFingerprint(options): (source)

Undocumented

def run(): (source)

Undocumented

supportedKeyTypes = (source)

Undocumented

def _defaultPrivateKeySubtype(keyType): (source)
Return a reasonable default private key subtype for a given key type.
Parameters
key​Type:strA key type, as returned by twisted.conch.ssh.keys.Key.type.
Returns
strA private OpenSSH key subtype ('PEM' or 'v1').
def _inputSaveFile(prompt): (source)

Ask the user where to save the key.

This needs to be a separate function so the unit test can patch it.

Parameters
prompt:strUndocumented
Returns
strUndocumented
def _keyGenerator(keyType): (source)

Undocumented

def _saveKey(key, options): (source)
Persist a SSH key on local filesystem.
Parameters
key:keys.Key implementation.Key which is persisted on local filesystem.
options:dict