SecureBlackbox 2020 Qt Edition

Questions / Feedback?

SSHKeyManager Class

Properties   Methods   Events   Configuration Settings   Errors  

The SSHKeyManager class stores information about SSH keys.

Syntax

SSHKeyManager

Remarks

SSHKeyManager provides the capabilities of generating, storing, importing, and exporting SSH keys.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

CertBytesReturns raw certificate data in DER format.
CertCAIndicates whether the certificate has a CA capability (a setting in BasicConstraints extension).
CertCAKeyIDA unique identifier (fingerprint) of the CA certificate's private key.
CertCRLDistributionPointsLocations of the CRL (Certificate Revocation List) distribution points used to check this certificate's validity.
CertCurveSpecifies the elliptic curve of the EC public key.
CertFingerprintContains the fingerprint (a hash imprint) of this certificate.
CertFriendlyNameContains an associated alias (friendly name) of the certificate.
CertHandleAllows to get or set a 'handle', a unique identifier of the underlying property object.
CertHashAlgorithmSpecifies the hash algorithm to be used in the operations on the certificate (such as key signing) SB_HASH_ALGORITHM_SHA1 SHA1 SB_HASH_ALGORITHM_SHA224 SHA224 SB_HASH_ALGORITHM_SHA256 SHA256 SB_HASH_ALGORITHM_SHA384 SHA384 SB_HASH_ALGORITHM_SHA512 SHA512 SB_HASH_ALGORITHM_MD2 MD2 SB_HASH_ALGORITHM_MD4 MD4 SB_HASH_ALGORITHM_MD5 MD5 SB_HASH_ALGORITHM_RIPEMD160 RIPEMD160 SB_HASH_ALGORITHM_CRC32 CRC32 SB_HASH_ALGORITHM_SSL3 SSL3 SB_HASH_ALGORITHM_GOST_R3411_1994 GOST1994 SB_HASH_ALGORITHM_WHIRLPOOL WHIRLPOOL SB_HASH_ALGORITHM_POLY1305 POLY1305 SB_HASH_ALGORITHM_SHA3_224 SHA3_224 SB_HASH_ALGORITHM_SHA3_256 SHA3_256 SB_HASH_ALGORITHM_SHA3_384 SHA3_384 SB_HASH_ALGORITHM_SHA3_512 SHA3_512 SB_HASH_ALGORITHM_BLAKE2S_128 BLAKE2S_128 SB_HASH_ALGORITHM_BLAKE2S_160 BLAKE2S_160 SB_HASH_ALGORITHM_BLAKE2S_224 BLAKE2S_224 SB_HASH_ALGORITHM_BLAKE2S_256 BLAKE2S_256 SB_HASH_ALGORITHM_BLAKE2B_160 BLAKE2B_160 SB_HASH_ALGORITHM_BLAKE2B_256 BLAKE2B_256 SB_HASH_ALGORITHM_BLAKE2B_384 BLAKE2B_384 SB_HASH_ALGORITHM_BLAKE2B_512 BLAKE2B_512 SB_HASH_ALGORITHM_SHAKE_128 SHAKE_128 SB_HASH_ALGORITHM_SHAKE_256 SHAKE_256 SB_HASH_ALGORITHM_SHAKE_128_LEN SHAKE_128_LEN SB_HASH_ALGORITHM_SHAKE_256_LEN SHAKE_256_LEN .
CertIssuerThe common name of the certificate issuer (CA), typically a company name.
CertIssuerRDNA collection of information, in the form of [OID, Value] pairs, uniquely identifying the certificate issuer.
CertKeyAlgorithmSpecifies the public key algorithm of this certificate.
CertKeyBitsReturns the length of the public key.
CertKeyFingerprintReturns a fingerprint of the public key contained in the certificate.
CertKeyUsageIndicates the purposes of the key contained in the certificate, in the form of an OR'ed flag set.
CertKeyValidReturns True if the certificate's key is cryptographically valid, and False otherwise.
CertOCSPLocationsLocations of OCSP (Online Certificate Status Protocol) services that can be used to check this certificate's validity, as recorded by the CA.
CertOriginReturns the origin of this certificate.
CertPolicyIDsContains identifiers (OIDs) of the applicable certificate policies.
CertPrivateKeyBytesContains the certificate's private key.
CertPrivateKeyExistsIndicates whether the certificate has an associated private key.
CertPrivateKeyExtractableIndicates whether the private key is extractable.
CertPublicKeyBytesContains the certificate's public key in DER format.
CertSelfSignedIndicates whether the certificate is self-signed (root) or signed by an external CA.
CertSerialNumberReturns the certificate's serial number.
CertSigAlgorithmIndicates the algorithm that was used by the CA to sign this certificate.
CertSubjectThe common name of the certificate holder, typically an individual's name, a URL, an e-mail address, or a company name.
CertSubjectKeyIDContains a unique identifier (fingerprint) of the certificate's private key.
CertSubjectRDNA collection of information, in the form of [OID, Value] pairs, uniquely identifying the certificate holder (subject).
CertValidFromThe time point at which the certificate becomes valid, in UTC.
CertValidToThe time point at which the certificate expires, in UTC.
CryptoKeyAlgorithmThe algorithm of the cryptographic key.
CryptoKeyBitsThe length of the key in bits.
CryptoKeyExportableReturns True if the key is exportable (can be serialized into an array of bytes), and False otherwise.
CryptoKeyHandleAllows to get or set a 'handle', a unique identifier of the underlying property object.
CryptoKeyIDProvides access to a storage-specific key identifier.
CryptoKeyIVThe initialization vector (IV) of a symmetric key.
CryptoKeyKeyThe byte array representation of the key.
CryptoKeyNonceA nonce value associated with a key.
CryptoKeyPrivateReturns True if the object hosts a private key, and False otherwise.
CryptoKeyPublicReturns True if the object hosts a public key, and False otherwise.
CryptoKeySubjectReturns the key subject.
CryptoKeySymmetricReturns True if the object contains a symmetric key, and False otherwise.
CryptoKeyValidReturns True if this key is valid.
KeyAlgorithmSpecifies the key algorithm.
KeyBitsThe number of bits in the key: the more the better, 2048 or 4096 are typical values.
KeyCommentThe comment for the public key.
KeyCurveSpecifies the elliptical curve when EC cryptography is used.
KeyDSSGThe G (Generator) parameter of the DSS signature key.
KeyDSSPThe P (Prime) parameter of the DSS signature key.
KeyDSSQThe Q (Prime Factor) parameter of the DSS signature key.
KeyDSSXThe X (Private key) parameter of the DSS signature key.
KeyDSSYThe Y (Public key) parameter of the DSS signature key.
KeyECCDThe value of the secret key (the order of the public key, D) if elliptic curve (EC) cryptography is used.
KeyECCQXThe value of the X coordinate of the public key if elliptic curve (EC) cryptography is used.
KeyECCQYThe value of the Y coordinate of the public key if elliptic curve (EC) cryptography is used.
KeyEdPrivateThe value of the private key if EdDSA (Edwards-curve Digital Signature Algorithm) algorithm is used.
KeyEdPublicThe value of the public key if EdDSA (Edwards-curve Digital Signature Algorithm) algorithm is used.
KeyFingerprintMD5Contains the MD5 fingerprint (hash) of the key.
KeyFingerprintSHA1Contains the SHA-1 fingerprint (hash) of the key.
KeyFingerprintSHA256Contains the SHA-256 fingerprint (hash) of the key.
KeyHandleAllows to get or set a 'handle', a unique identifier of the underlying property object.
KeyIsExtractableWhether the key is extractable (e.
KeyIsPrivateWhether this key is a private key or not.
KeyIsPublicWhether this key is a public key or not.
KeyKDFRoundsReturns the number of iterations of the Key Derivation Function (KDF) used to generate this key.
KeyKDFSaltThe salt value used by the Key Derivation Function (KDF) to generate this key.
KeyKeyFormatSpecifies the format in which the key is stored.
KeyKeyProtectionAlgorithmSpecifies the key protection algorithm.
KeyRSAExponentReturns the e parameter (public exponent) of the RSA key.
KeyRSAIQMPReturns the iqmp parameter of the RSA key.
KeyRSAModulusReturns the m parameter (public modulus) of the RSA key.
KeyRSAPReturns the p parameter (first factor of the common modulus n) of the RSA key.
KeyRSAPrivateExponentReturns the d parameter (private exponent) of the RSA key.
KeyRSAQReturns the q parameter (second factor of the common modulus n) of the RSA key.
KeySubjectSpecifies the public key owner (subject).

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

ConfigSets or retrieves a configuration setting.
ExportBytesWrites the key to a memory buffer.
ExportToCertExports the key to a certificate.
ExportToCryptoKeyExports the key to a crypto key object.
ExportToFileWrites key to file.
GenerateGenerates a new SSH key.
GetKeyParamReturns an algorithm-specific key parameter.
GetKeyParamStrReturns an algorithm-specific key parameter to a string.
ImportBytesLoads key from buffer.
ImportFromCertLoads a key from a certificate.
ImportFromCryptoKeyImports a key from a crypto key.
ImportFromFileLoads key from file.
SetKeyParamSets an algorithm-specific key parameter.
SetKeyParamStrSets an algorithm-specific key parameter.

Event List


The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.

ErrorInformation about errors during SSH key management.
NotificationThis event notifies the application about an underlying control flow event.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

TempPathPath for storing temporary files.
CheckKeyIntegrityBeforeUseEnables or disable private key integrity check before use.
CookieCachingSpecifies whether a cookie cache should be used for HTTP(S) transports.
CookiesGets or sets local cookies for the class (supported for HTTPClient, RESTClient and SOAPClient only).
DefDeriveKeyIterationsSpecifies the default key derivation algorithm iteration count.
EnableClientSideSSLFFDHEEnables or disables finite field DHE key exchange support in TLS clients.
GlobalCookiesGets or sets global cookies for all the HTTP transports.
HttpUserAgentSpecifies the user agent name to be used by all HTTP clients.
LogDestinationSpecifies the debug log destination.
LogDetailsSpecifies the debug log details to dump.
LogFileSpecifies the debug log filename.
LogFiltersSpecifies the debug log filters.
LogFlushModeSpecifies the log flush mode.
LogLevelSpecifies the debug log level.
LogMaxEventCountSpecifies the maximum number of events to cache before further action is taken.
LogRotationModeSpecifies the log rotation mode.
MaxASN1BufferLengthSpecifies the maximal allowed length for ASN.1 primitive tag data.
MaxASN1TreeDepthSpecifies the maximal depth for processed ASN.1 trees.
OCSPHashAlgorithmSpecifies the hash algorithm to be used to identify certificates in OCSP requests.
UseOwnDNSResolverSpecifies whether the client classes should use own DNS resolver.
UseSharedSystemStoragesSpecifies whether the validation engine should use a global per-process copy of the system certificate stores.
UseSystemOAEPAndPSSEnforces or disables the use of system-driven RSA OAEP and PSS computations.
UseSystemRandomEnables or disables the use of the OS PRNG.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 Qt Edition - Version 20.0 [Build 8165]