module documentation
(source)

Implementation module for the `ckeygen` command.

Variable supportedKeyTypes Undocumented
Class GeneralOptions Undocumented
Function run Undocumented
Function enumrepresentation Undocumented
Function handleError Undocumented
Function generateRSAkey Undocumented
Function generateDSAkey Undocumented
Function generateECDSAkey Undocumented
Function generateEd25519key Undocumented
Function printFingerprint Undocumented
Function changePassPhrase Undocumented
Function displayPublicKey Undocumented
Function _keyGenerator Undocumented
Function _defaultPrivateKeySubtype Return a reasonable default private key subtype for a given key type.
Function _inputSaveFile Ask the user where to save the key.
Function _saveKey Persist a SSH key on local filesystem.
supportedKeyTypes = (source)

Undocumented

def _keyGenerator(keyType): (source)

Undocumented

def run(): (source)

Undocumented

def enumrepresentation(options): (source)

Undocumented

def handleError(): (source)

Undocumented

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

Undocumented

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

Undocumented

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

Undocumented

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

Undocumented

def _defaultPrivateKeySubtype(keyType): (source)

Return a reasonable default private key subtype for a given key type.

ParameterskeyTypeA key type, as returned by twisted.conch.ssh.keys.Key.type. (type: str)
ReturnsA private OpenSSH key subtype ('PEM' or 'v1'). (type: str)
def printFingerprint(options): (source)

Undocumented

def changePassPhrase(options): (source)

Undocumented

def displayPublicKey(options): (source)

Undocumented

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.

ParameterspromptUndocumented (type: str)
ReturnsUndocumented (type: str)
def _saveKey(key, options): (source)

Persist a SSH key on local filesystem.

ParameterskeyKey which is persisted on local filesystem. (type: keys.Key implementation.)
options (type: dict)
API Documentation for Twisted, generated by pydoctor 21.2.0 at 2021-02-28 21:00:42.