Пример #1
0
        /// <summary>
        /// Get certificate chain of trust.
        /// </summary>
        /// <param name="store"></param>
        /// <param name="serialNumber">serial number of the
        /// certificate </param>
        /// <param name="ct"></param>
        /// <returns></returns>
        public static async Task <IEnumerable <Certificate> > ListCompleteCertificateChainAsync(
            this ICertificateStore store, byte[] serialNumber,
            CancellationToken ct = default)
        {
            var cert = await store.GetCertificateAsync(serialNumber, ct);

            return(await store.ListCompleteCertificateChainAsync(cert, ct));
        }