Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

propertyTstCustomKeyIndexSSHUserName.PreferCertificates

property PreferCertificates: Boolean read fPreferCertificates write SetPreferCertificates;
PreferCertificates only matters in DoCompareEqual when exactly one of the two competing buckets resolved to a certificate and the other to a bare SSH public key (when both sides have a certificate the tie is instead decided by comparing notAfter validity, ignoring this flag): set it to True to rank the certificate-backed entry first in that mixed case. This index is typically installed on a key manager used by the SSH server (see TstCustomSSHServer.GetPublicKey/SetAuthData) to look up an authorized client key by the claimed username during publickey authentication, so the setting decides which stored key wins when a user has both a plain SSH2 public key and a certificate on file.