methodTsmStreamSecII.FindExpiringTLSServerCertificatesEx
function FindExpiringTLSServerCertificatesEx(aElapsedFraction: Double; aList: TStrings): Integer;
As FindExpiringTLSServerCertificates, but the cut-off is expressed as the FRACTION of each certificate's validity period that must have ELAPSED for it to be included, rather than an absolute date. aElapsedFraction = 2/3 selects the certificates with less than 1/3 of their validity left (now is at least notBefore + 2/3*(notAfter - notBefore)) - the same threshold that TsmAcmeRenewalManager.RenewalFraction uses, so this is the natural "which of my live server certificates are due for renewal?" query, e.g. after a restart or on a timer. Besides the '%s=%s' string (subject-public-key OID = DNS name) each entry also carries, as its Object, a TsmCertificateObject wrapping the leaf iCertificate - ready to hand to TsmAcmeRenewalManager.Manage. THE CALLER OWNS THOSE OBJECTS: pass a TStringList created with OwnsObjects := True (so the list frees them), or free aList.Objects[i] yourself.