Exemplo n.º 1
0
        private void SetCert(long fromTs, long toTs)
        {
            X509Certificate2 cert = _certReader.GetActiveCertificateAsync(fromTs, toTs).Result;

            if (cert != null)
            {
                _logger.LogInformation(
                    $"Set current cert active in ts {fromTs}->{toTs}, cert NotAfter {cert.NotAfter}");
                _currentCert = cert;
            }
        }
Exemplo n.º 2
0
 public Task <X509Certificate2> GetActiveCertificateAsync(long fromTs, long toTs)
 {
     return(_certReader.GetActiveCertificateAsync(fromTs, toTs));
 }