Exemplo n.º 1
0
        public void CertificateSearchByFile(string[] args)
        {
            CertificateFileInfo certFileInfo = CertificateFileInfo.Create(0, args);
            MemoryX509Store     certs        = certFileInfo.LoadCerts();

            WriteLine(string.Empty);

            this.Search(
                x => (certs.FirstOrDefault(y => this.Match(x, y)) != null)
                );
        }
Exemplo n.º 2
0
        public void AnchorSearchByFile(string[] args)
        {
            string owner = args.GetRequiredValue(0);
            CertificateFileInfo certFileInfo = CertificateFileInfo.Create(1, args);
            MemoryX509Store     certs        = certFileInfo.LoadCerts();

            WriteLine(string.Empty);

            this.Search(
                owner,
                x => (certs.FirstOrDefault(y => this.CertCommands.Match(x, y)) != null)
                );
        }