Exemplo n.º 1
0
        public ReadonlyList GetPersonalCertificates(bool onlyWithPrivateKey = false, bool useLocalSystemStorage = false)
        {
            var certs = crypt.GetPersonalCertificates(onlyWithPrivateKey, useLocalSystemStorage);
            var personalCertificates = new ArrayList(certs.Count);

            foreach (X509Certificate2 cert in certs)
            {
                personalCertificates.Add(new Certificate(cert));
            }
            return(new ReadonlyList(personalCertificates));
        }