Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstSSHPublicKeyList.GetKeyText

function GetKeyText(const aIdentifier: OctetString): string;
Returns the stored key for aIdentifier serialized as text in the configured public-key format (RSAPublicKeyFormat / DSSPublicKeyFormat), with a Subject header set to the identifier. Use this to display or export an authorized-peer entry, e.g. to show which key is on file for a user or to write out an authorized_keys-style line. Returns an empty string if the identifier is unknown.